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 not working!

Hi Folks

I have a problem with a rank function in a pivot table, I'm using the following expression:

Rank ( TOTAL Sum ( {$1} REVs * Trade_YTDFlag ) ,1 ,1 )

When no filters are applied I would appear to be getting correct results as per following screenshot (note that I have obfuscated the client names for security, but the Red line is the one that I will filter on for the second image):

screen1.png

The problem is that when I filter on a particular client I get this:

screen2.png

I had thought that the {$1} in the sum function would work alongside the dimensions, but ignore selections but as you can see from the above screenshot all I now get is Rank 1 in every column when I should be seeing the exact same ranks as in the first screen.

Would appreciate any help you can provide.

2 Replies
perumal_41
Partner - Specialist II
Partner - Specialist II

Hi

use HRank function,

Not applicable
Author

Hi

HRank is a function that ranks a cell within the columns, i.e. would rank this cell against the other cells in the same row. This is not what I want, I am ranking the cell in a single column, but more importantly, ranking that cell whilst ignoring any selections that have been made.

Thanks,