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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
JeffMelon
Contributor II
Contributor II

Sum values in a field by unique instance of another field

JeffMelon_0-1694547468987.png

 

I am trying to sum Loads by the unique instances of each Lane ID, I tried using sum distinct but that gave me 28, not 31.

Not sure if I should be using set analysis for this, can someone share their thoughts on this?

 

Thank you

Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master II
Partner - Master II

Hi, try this.

=Sum(Aggr(Only(Loads), Lane, [Lane ID], Loads))

View solution in original post

2 Replies
BrunPierre
Partner - Master II
Partner - Master II

Hi, try this.

=Sum(Aggr(Only(Loads), Lane, [Lane ID], Loads))

JeffMelon
Contributor II
Contributor II
Author

Thank you, this worked perfect!