Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Our next Qlik Insider session will cover new key capabilities. Join us August 11th REGISTER TODAY
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.

View solution in original post

parthiband
Partner
Partner

Try this too

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

Thanks,

danialier
Creator III
Creator III
Author

Great, thanks Jagan !