Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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
Partner - Master

Hi, try this.

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

View solution in original post

2 Replies
BrunPierre
Partner - Master
Partner - Master

Hi, try this.

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

JeffMelon
Contributor II
Contributor II
Author

Thank you, this worked perfect!