Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
JohnFox
Contributor
Contributor

Grouping of Top 10

Hi all.

I have built some metrics in my Qlik dashboard and I have a list of 30 or so manufacturers.  The manufacturer that I am after is in the middle of it or so and I would like to try and group the top 10 into one bucket, 2nd 10 into another bucket etc and may be add the bottom 10.

How is this metric built please?

Thank you!

Labels (3)
1 Reply
vinieme12
Champion III
Champion III

use  a calculated dimension as below,  replace sum(Sales) with your measure for ranking top n

and Manufacturer  with your actual field name

 

=Aggr( If (rank(Sum(Sales),4,2)<=10,'Top 10'

,If (rank(Sum(Sales),4,2)<=20,'Top 10-20'

,If (rank(Sum(Sales),4,2)<=30,'Top 20-30' ))) , Manufacturer )

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.