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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
danialier
Creator III
Creator III

Question on FirstSortedvalue formula

Hello,

I have the attached QV document with a black text box showing the company name that has the highest revenue. When I select a month the black box returns the right company name based on the highest revenue. However when I select all months the black box returns a wrong company name.

Please help !

Thanks,

dani

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

=FirstSortedValue(Company, -Aggr(Sum(Revenue), Company))

Regards,

Jagan.

View solution in original post

3 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

=FirstSortedValue(Company, -Aggr(Sum(Revenue), Company))

Regards,

Jagan.

parthiband
Partner - Creator
Partner - Creator

Try this too

Only({$<Company={"=Rank(Sum(Revenue),4,1)=1"}>}Company)

Thanks,

danialier
Creator III
Creator III
Author

Great, thanks Jagan !