Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Vinni2000
Contributor III
Contributor III

I want to create buckets of Top10 , top 10-20 and others and its percentage of total value

Top 10 Contracts 55%  
Top 10-20 Contracts 25%  
Others 20%  
Labels (3)
1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

Try the following:

Dimension:

=Aggr(
If(Rank(Sum(Sales))<=10,Dual('Top',1),
If(Rank(Sum(Sales))<=20,Dual('11-20',2),
Dual('Others',3))),
Contract)

Measures:

Sum(Sales)

Sum(Sales)/Sum(total Sales)

View solution in original post

1 Reply
hic
Former Employee
Former Employee

Try the following:

Dimension:

=Aggr(
If(Rank(Sum(Sales))<=10,Dual('Top',1),
If(Rank(Sum(Sales))<=20,Dual('11-20',2),
Dual('Others',3))),
Contract)

Measures:

Sum(Sales)

Sum(Sales)/Sum(total Sales)