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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Rank

Hi,

I want to show rank top of a client, based on Sales. Can i do this with set analysis? I am trying rank(aggr(sum(Sales),[NameClient])), but when i select a client it shows 1. I need to be able to select a client and to show the rank between the rest of the clients.

Any suggestions?

Best regards,

Cosmina

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

you can use set analysis in your rank

if you display a table with customer rank

this should do the trick

max(aggr(rank(sum({<NameClient=>}Sales)),NameClient))

View solution in original post

5 Replies
sunny_talwar

Can you share few rows of data and point out the expected ouput?

lironbaram
Partner - Master III
Partner - Master III

hi

you can use set analysis in your rank

if you display a table with customer rank

this should do the trick

max(aggr(rank(sum({<NameClient=>}Sales)),NameClient))

vinieme12
Champion III
Champion III

TRY

AGGR(NODISTINCT rank(SUM({1}Sales),1,1),[NameClient])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable
Author

Try this


rank(sum({<NameClient=>}Sales))

Anonymous
Not applicable
Author

Thank you all,

I tested

max(aggr(rank(sum({<NameClient=>}Sales)),NameClient)) and works.

Best regards,

Cosmina