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: 
Anonymous
Not applicable

Max Rank Display

Hello,

I am attempting to display the ranking of sales per user.

Then I will later want to compare their sales figures to other users.

Please could someone explain how to rank the sales figures, to see the top 3 Users. Then display the top sales figures, so that we can later have a comparison to other Users and the top User, see attachment.

Thank you.

Labels (1)
1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Create a Straight Table

Dimension

User

Expression

SUM(Sales)

Num(Rank(SUM(Sales),4))

SUM(TOTAL {<User = {"=Rank(SUM(Sales),4)=1"}>}Sales)

If you want to compare top 3 with top then use as below

Straight Table

Dimension

User

Expression

SUM({<User = {"=Rank(SUM(Sales),4)<=3"}>}Sales)

NUM(Rank(SUM({<User = {"=Rank(SUM(Sales),4)<=3"}>}Sales),4))

SUM(TOTAL {<User = {"=Rank(SUM(Sales),4)=1"}>}Sales)

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

have a look at the attach example

hope it helps you

MK_QSL
MVP
MVP

Create a Straight Table

Dimension

User

Expression

SUM(Sales)

Num(Rank(SUM(Sales),4))

SUM(TOTAL {<User = {"=Rank(SUM(Sales),4)=1"}>}Sales)

If you want to compare top 3 with top then use as below

Straight Table

Dimension

User

Expression

SUM({<User = {"=Rank(SUM(Sales),4)<=3"}>}Sales)

NUM(Rank(SUM({<User = {"=Rank(SUM(Sales),4)<=3"}>}Sales),4))

SUM(TOTAL {<User = {"=Rank(SUM(Sales),4)=1"}>}Sales)