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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
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

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

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