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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ranking problem when selecting

I am using the expression below, which give me the ranking, but if I make a selection, that fleet will allways be 1. 

aggr

(

rank(total sum({$<Fleet= {"=aggr(sum(total <Fleet, PERIOD> {<TOTAL = {'>=$(Limit)<=$(Capped)'}>} YEARS ), Fleet) > $(vyears)"}>} TOTAL/ YEARS)), Fleet

)

But if I am using Fleet= in the Set Analysis expression, it will give me the rank of all the fleets corresponding to the current selection.

How could I use a condition, but still get the ranking when one fleet is selected?


Labels (1)
0 Replies