Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rank for multiple years

Hi

I have 3 years (2015,2016,2017) data. Each year is having 3 fields like a,b,c like below table.

Year SalesProduct

2015

20a
201530b
201515c
201640a
201650b
201655c
201770a
201740b
201723c

I want to get rank for 2015 and 2016 for product a .

How to write the expression for this.

4 Replies
shiveshsingh
Master
Master

Hi

you can refer below thread.

How to use rank function?

sergio0592
Specialist III
Specialist III

Maybe like this:

Sales :

Sales.jpg

Rank:

Rank.JPG


vidyasagar159
Creator II
Creator II

Hi,

Did you found the answer to this issue?

Thanks,

-Vidya

jerryyang756
Creator
Creator

Year and Product as Dimension

Expression:

If(Product='a' and (Year=2015 or Year=2016),

VRank(TOTAL Sum(Sales),0,1))

Capture3.PNG