Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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
Luminary Alumni
Luminary Alumni

Hi,

Try like this

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

Regards,

Jagan.

View solution in original post

3 Replies
jagan
Luminary Alumni
Luminary Alumni

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 !