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: 
profilejamesbond
Creator II
Creator II

Top 10 Products Flag

Hi,

I have sales data where I have sales by country, region, and city.

Now, I would like to add filter in the app which contains top 10 sales products name while rest of the products mark as "Other".

How to do it ?

 

Thanks

Labels (3)
1 Solution

Accepted Solutions
seanbruton
MVP
MVP

Hi,

 

Please could you advise what visualization would be impacted by this, is it a Table or Bar, Combo and Line Charts.

 

In most charts under the dimension in properties there is a limitation selection where you can setup exactly that.

seanbruton_0-1748867692595.png

If you are using a table try the below script in your first dimension.

if(Rank(total Sum(Sales))<=10,sum(total aggr(if(Rank(total Sum(Sales))<=10,Sales),country, region,city)))

 

Regards

Sean

 

 

View solution in original post

1 Reply
seanbruton
MVP
MVP

Hi,

 

Please could you advise what visualization would be impacted by this, is it a Table or Bar, Combo and Line Charts.

 

In most charts under the dimension in properties there is a limitation selection where you can setup exactly that.

seanbruton_0-1748867692595.png

If you are using a table try the below script in your first dimension.

if(Rank(total Sum(Sales))<=10,sum(total aggr(if(Rank(total Sum(Sales))<=10,Sales),country, region,city)))

 

Regards

Sean