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: 
siri_v
Contributor II
Contributor II

Ranking bottom not working

I need to do Top and Bottom Ranking of Rep based on metric (calculation sum(ABC)/sum(DEF)).I also have a variable dropdown to choose vRange.  Top Ranking works perfectly.


For the bottom ranking, I am unable to get it to work though I deselected to include Nulls. There are lot of Reps with 0 or very minimum value so I am getting blank.  To avoid this, I want to get only reps who have YTD sum(DEF) > 100

I tried to put this in calculation condition but I get error. Then I tried to create a measure
=aggr(if(rank(Sum({$<Year={"<2021"}>}DEF))>=0,rep),rep) .. even this does now work..

Can someone please advise how to do the bottom ranking.. I need to do ranking just for reps having sum(DEF) > 100 (or some threshold number)

Labels (2)
3 Replies
siri_v
Contributor II
Contributor II
Author

Thank you @Ksrinivasan  . This is definitely very useful.  In a straight table, I get the rank(sum(DEF)) correctly using this.. 

But my requirement is I am having a Bar chart for ranking.. The dimension is rep and measure is sum(ABC)/sum(DEF) 

how do I restrict the reps that have a very low sum(DEF) ? so that reps show in the bottom ranking Bar chart ? 

 

Ksrinivasan
Specialist
Specialist

hi,

you have to restrict or filter the low values in load script itself .

ksrinivasan