Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ranking a particular product

Hi

I want to able to refer to the rank a particular Product within a table.

Please use the attached qvw file.

I have ranked my products in a table using:

=Rank( Sum( Value ) )  

and have been able to refer to the 1st ranked product using:

=Only( {< Product = {"=Rank( Sum( Value ),Product )= 1" } >}           Product  )

However I want to able to display the Rank of Product 'A' but cannot work out how to do it.

Any help would be appreciated.

Thanks.

1 Solution

Accepted Solutions
Jason_Michaelides
Luminary Alumni
Luminary Alumni

Hi Simon,

Try:

=Only({<Product={A} >} Aggr(Rank(Sum(Value)),Product))

Hope this helps,

Jason

View solution in original post

2 Replies
Jason_Michaelides
Luminary Alumni
Luminary Alumni

Hi Simon,

Try:

=Only({<Product={A} >} Aggr(Rank(Sum(Value)),Product))

Hope this helps,

Jason

Not applicable
Author

Hi Jason

That works great, Thanks for your help

Simon