Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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!

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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!!