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

Return the sum that is ranked 1st in firstsortedvalue

Hi,

I am analyzing driver miles within a given date. Basic data I have is driverID, Date, Miles

I am using first sorted value to see on what date the most miles were driven:

firstsortedvalue([Date], -Aggr(sum(Miles),[Date]))

What I want to display in a separate object is what the sum(Miles) is for the Date that is returned from the firstsortedvalue. Help?

1 Solution

Accepted Solutions
ramoncova06
Specialist III
Specialist III

do you mean something like max(Aggr(sum(Miles),[Date])) ?

View solution in original post

2 Replies
ramoncova06
Specialist III
Specialist III

do you mean something like max(Aggr(sum(Miles),[Date])) ?

Not applicable
Author

That did it. I was trying to re-use the firstsorted expression but should have thought simpler. Thanks!