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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rank function

help combining Rank function, Modes for Cutomers and a Mix?

1 Reply
Not applicable
Author

Hi Joseph

You need 3 dimensions :

YEAR

=If(   Aggr(    Rank(   sum(SALES)) , YEAR , MIX )  <=5 , MIX)   /*  TOP 5 MIX BY YEAR */

=If(   Aggr(    Rank(   sum(SALES)) , YEAR , MIX  , CUSTOMER)  <=5 , CUSTOMER)  /* TOP 5 CUSTOMER BY YEAR & MIX */

Regards

JJ