Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
KPage
Contributor III

Top 10 Rank

Hi,

I am trying to only include the Top 10 in rank. Below is my expression. This shows the rankings of the items by sales. I only want the top 10 ranked as pictured below

 

If(
sum({<[Week Ending]={'$(=date(Max([Week Ending])-7,'MM/DD/YYYY'))'}>}[Retail Sales]) + 
    Sum({<[Week Ending]={'$(=Max([Week Ending]))'}>}[Retail Sales]) <> 0,
    Rank(TOTAL Sum({<[Week Ending]={'$(=Max([Week Ending]))'},Manufacturer=,Brand=>}[Retail Sales]),1,1) 
)

 

 

KPage_0-1693324703197.png

 

Labels (3)
1 Reply
ajaykakkar93
Specialist III

Hi,
Can you try 
if(Rank(Sum(.....EXPRESSION....) < 11, ....EXPRESSION... )

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting