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: 
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
Partner - Specialist III
Partner - Specialist III

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

View solution in original post

2 Replies
ramoncova06
Partner - Specialist III
Partner - 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!