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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
shekhar_analyti
Specialist
Specialist

How to get rank properly when multiple dimension have same metric value ?

Hi All ,

How to get rank properly when multiple dimension have same metric value ?

 

ItemSaleRank
A201
B102
C83
D54-5
E54-5
F26-7
G26-7
H18-9
I18-9

Expected

 

ItemSaleRank
A201
B102
C83
D54
E54
F25
G25
H16
I16
1 Solution

Accepted Solutions
sunny_talwar

Use this expression

Div(Index('-' & Concat(DISTINCT TOTAL Num(Aggr(Rank(Sum(Sales),1,1), Item), '00000'), '-', -Aggr(Sum(Sales), Item)), Num(Rank(Sum(Sales),1,1), '00000')), 6) + 1


Capture.PNG

View solution in original post

3 Replies
sunny_talwar

shekhar_analyti
Specialist
Specialist
Author

Response for Faster than time taken to submit after pressing post button

sunny_talwar

Use this expression

Div(Index('-' & Concat(DISTINCT TOTAL Num(Aggr(Rank(Sum(Sales),1,1), Item), '00000'), '-', -Aggr(Sum(Sales), Item)), Num(Rank(Sum(Sales),1,1), '00000')), 6) + 1


Capture.PNG