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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
GeorgePhilips23
Partner - Contributor III
Partner - Contributor III

Firstsortedvalue

I have 3 fields: Sum(revenue), Product  and Month(Jun and Jul only)

Now I have to find highest revenue generating Product in the month of Jul.

Can anyone help me out with an expression for the same?

Labels (2)
1 Solution

Accepted Solutions
anat
Master
Master

=FirstSortedValue(Product, -Aggr(Sum({<Month={'July'}>}Sales), Product))

View solution in original post

2 Replies
anat
Master
Master

=FirstSortedValue(Product, -Aggr(Sum({<Month={'July'}>}Sales), Product))

GeorgePhilips23
Partner - Contributor III
Partner - Contributor III
Author

THanks a lot @anat