Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
orangebloss
Creator
Creator

Restricting values in a table to the top X

Name Max(Pax) Rank(max(Pax))
John 20 1
Mark 19 2
Mabel 18 3
Sarah 15 4

 

I've created a table as above but what I want to show is only the top 3 - I've tried various different ways but haven't quite worked it out?

 

Any help appreciated!

Labels (4)
2 Replies
Padma123
Creator
Creator

Max({<Name={"=rank(max(Pax))<=3"}>}Pax)

MatheusC
Specialist II
Specialist II

@orangebloss 

Restricting values the top X by its dimension,

=aggr(only({<Name = {"=Rank(max(Pax), 4)<=3"} >}Name), Name)

In the dimension, uncheck include null values ​​/ Show others

- Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!