Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Qlik Users,
I am trying to create an expression that uses the rank function to return a specific dimension rather than a rank #. Is there a way to do this?
For example, when I am looking at this year as a dimension, I want to have an expression that gives me the best warehouse in terms of sales volume.
So far below is what I have.
Max(AGGR(
Rank(
Sum(NetSalesUSD))
,Whse_Name),Whse_Name)
This gives me a number, but I am looking to get the Whse_Name. Any Ideas?
Thank you in advance!
Mike
May be use FirstSortedValue() function like:
= FirstSortedValue(Whse_Name, -AGGR(Sum(NetSalesUSD),Whse_Name))
May be use FirstSortedValue() function like:
= FirstSortedValue(Whse_Name, -AGGR(Sum(NetSalesUSD),Whse_Name))