Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
MT4T
Creator
Creator

Peek rank for variable value

Hello,

I have this table as a sample.

My question is how to peek value of rank for specific DATE defined by variable? 

I want to build text and image object which will say "last report rank is xx out of yy".

I know how to define yy - MAX(AGGR(RANK(SUM(MValue_KS)),DATE))

But with xx i have a problem.

MT4T_0-1697528836122.png

Thank you in advance.

Labels (2)
1 Solution

Accepted Solutions
vincent_ardiet_
Specialist
Specialist

Ok I see, then here it is:

Only( {< DATE={'$(vDATE)'} >} AGGR(RANK(SUM(MValue_KS)),DATE))

View solution in original post

3 Replies
vincent_ardiet_
Specialist
Specialist

Something like:

Only( {< DATE = {"=Rank(SUM(MValue_KS))=$(=MAX(AGGR(RANK(SUM(MValue_KS)),DATE)))"} >} DATE)

MT4T
Creator
Creator
Author

Thank you, your function could be especially useful. 

But i need to do it in another way. 

My variable vDATE = '10.10.2023' i need to get rank for this day which is "112" according to sample pivot.

 

 

vincent_ardiet_
Specialist
Specialist

Ok I see, then here it is:

Only( {< DATE={'$(vDATE)'} >} AGGR(RANK(SUM(MValue_KS)),DATE))