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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to rank prior period value in chart with top 10 current period

New to QV, but after searching the forum and talking to others, unable to write a ranking expression as displayed in the fourth column below. For example Category 'a' is #1 in highest dollars current month, but last month it was just $5 and should last month be ranked category a to z (DESIRED RANK Last Month) it is ranked 11, but my rank expression (PRESENT RANK Last Month) just ranks it within the subset shown as 10. The chart has the dimension limited to top 10 of first expression (Current Month). I'd appreciate your thoughts.

Thank you

Category$$ Savings:Current Month$$ Savings: Last MonthDESIRED Rank Last MonthPRESENT RANK Last Month
a10051110
b909022
c808033
d707044
e606055
f505066
g404077
h303088
i202099
j1010011
1 Solution

Accepted Solutions
bbi_mba_76
Partner - Specialist
Partner - Specialist

Hi,

I think you have to use the aggr function, see the attached example.

View solution in original post

3 Replies
bbi_mba_76
Partner - Specialist
Partner - Specialist

Hi,

I think you have to use the aggr function, see the attached example.

Anonymous
Not applicable
Author

Awesome, thank you!

tresesco
MVP
MVP

BBI_MBA_76, Good one, however TOTAL keyword might not be essential here.