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

Rank Based On ALL Dimension Members

Hello

I have the following rank expression.

=rank(sum(TotalCost),4)

However, is there a way to ignore a dimension selection?  So that the rank expression would return the rank based on ALL.

For example, I selected one Partner dimension member.  Even though only one Partner would return, I would like the rank expression to rank based on ALL Partner members, not based on the selected members.

Partner      Rank

"QlikView"     1

"Microsoft"     2

"Google"       3

Current Result (after filtering on "Google" Partner)

"Google"     1

Ideal Result (after filtering on "Google" Partner)

"Google"     3    

Sincerely.

11 Replies
Not applicable
Author

Thanks Stefan!  Works like a charm! 

Jason_Michaelides
Luminary Alumni
Luminary Alumni

Very nice, Stefan.  I need to start using Aggr() more as it's come up here a lot recently and seems to be pretty powerful when used correctly.

Jason