Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
msuk121336387
Contributor
Contributor

How to group and sum columns

I have been trying for quite a while to get duplicate "Part Numbers" (ComponentItemNumber) to group and the "Picked" column to SUM up to one number. As shown below.

ComponentItemNumberSRLItemDescriptionCostPickedOnHandQtyOnOrderQtySourceStd_Price
201056756BUSH C/S£15.0013320BL2£38.42
201056756BUSH C/S£15.0023320BL2£38.42
201056756BUSH C/S£15.0043320BL2£38.42
201058600BUSH£24.60155BL1£68.20
201058600BUSH£24.60255BL1£68.20

This is what I want to achieve below.

ComponentItemNumberSRLItemDescriptionCostPickedOnHandQtyOnOrderQtySourceStd_Price
201056756BUSH C/S£15.0093320BL2£38.42
201058600BUSH£15.00355BL1£68.20
201058689SCREW£24.60102040BL0£78.15

If anyone could help me i would appreciate it very much. Thanks in advance.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Create a straight table, add all the fields except Picked as dimensions. Add sum (Picked) as expression. Reorder the columns to your liking.


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

Create a straight table, add all the fields except Picked as dimensions. Add sum (Picked) as expression. Reorder the columns to your liking.


talk is cheap, supply exceeds demand
msuk121336387
Contributor
Contributor
Author

Thanks for the answer. I have created the straight table with all the fields and the expression, but the table is not populating any of the data. I might be being stupid but how do i get the straight table to populate.

Thanks in advance

msuk121336387
Contributor
Contributor
Author

I was being stupid, i put the expression in the wrong place. Thanks for your help.