Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
AC3
Contributor III
Contributor III

Top Rank Chart Label

I have a chart which plots the top ranking Customer over 2 days by hour. 

Capture.PNG

The Expression used is: Sum({1<customer= {"=aggr(rank(sum(sales)), customer) = 1"}> } sales)


I'd like the Expression Label to be the customer with rank=1.  I've tried this if(rank(sum(sales))=1,customer) but it's returning nulls. 

Appreciate any help!

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try =only({1<customer={"=rank(sum(sales))=1"}>} customer)


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar

Try =only({1<customer={"=rank(sum(sales))=1"}>} customer)


talk is cheap, supply exceeds demand
Not applicable

try below:

Sum({1<customer= {"$(=aggr(rank(sum(sales)), customer) = 1)"}> } sales)

mayankraoka
Specialist
Specialist

Did you try using firstsorted value function and aggr that and to display

it in descending order use - sign

AC3
Contributor III
Contributor III
Author

Awesome, thank you!!