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: 
antoniodneto
Creator II
Creator II

Help with TOP Rank Table

Hi guys

I have 3 dimensions. DATE, CLIENT and CODE with 3 measures: SALES, COST and PROFIT.

I need to show the TOP 20 CLIENTS using MAX DATE. How can I achieve that?

Tks a lot!

1 Solution

Accepted Solutions
puneetagarwal
Partner - Creator II
Partner - Creator II

Hi,

Please try the below expression and change the field-names accordingly

if( aggr( rank(Sum(Sales)),Client) <=20,Client)

Regards,
Puneet Agarwal

View solution in original post

2 Replies
Lisa_P
Employee
Employee

Have your CLIENT as the dimension, use Max(Date) as the first measure in the table and in the CLIENT dimension, in the properties panel, set the Limitation to Top 20, deselect Show others.

puneetagarwal
Partner - Creator II
Partner - Creator II

Hi,

Please try the below expression and change the field-names accordingly

if( aggr( rank(Sum(Sales)),Client) <=20,Client)

Regards,
Puneet Agarwal