Use Group Header and Group Footer for this purpose. You first data item should be Item, 2nd should be Purchasse Line and this indented under Item. Link the two tables using properties. Filter Purchase Line for Type=Item
In properties of Purchase Line: Group Total Fields as “No.”
TotalFields : Quantity
and display quantity in GroupFooter section of Purchase Line