Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Top two rank over two dimensions

Hi,

I have a requirement where I have to show top two ranks based on two dimensions. For example:

YearAreasum(Subscribers)
2011A1000
2011B1800
2011C1300
2012A1100
2012B1850
2012C1900

I have Year and Area as dimensions, while Sum(Subscribers) in an expression. Required result:

YearAreaSum(Subscribers)Rank
2011B18001
2011C13002
2012C19001
202B18502

So, how to find top 'n' ranking based on more than one dimension?

Thank you!!

2 Replies
JoaquinLazaro
Partner - Specialist II
Partner - Specialist II

Hi:

Look the Rank() function on the help file

Hope it helps

Joaquín

sunny_talwar

May be a calculated dimension:

=If(Aggr(Rank([sum(Subscribers)]) <= 2, Year, Area), Area)

Capture.PNG