Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum with distinct (other) column

Hi all,

I currently have a table that includes 3 columns:

- ProjectName

- OrderID (unique)

- OrderValue

I want to have a chart/table that shows the total value of each project. Normally it would just be a case of having the name as a dimension and sum(OrderValue) as an expression, but I noticed that there are duplicate OrderIDs as each stage of the order process generates multiple rows.

So, what would be needed to be done is first select all distinct OrderIDs and then sum up the corresponding OrderValues for those rows. I tried using the aggr() function as it seemed the most obvious route, but not with much success.

0 Replies