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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

multiple rank in a pie chart

Can we have multiple rank in a pie chart?

for example, I like to have top 10 customers and 11-20 customers on pie chart with $amount and percentage.

I know how to get top 10 customer with rank and aggr but i can't figure out having both in one chart.

Thanks!

Labels (1)
1 Solution

Accepted Solutions
prieper
Master II
Master II

Should work with a calculated dimension like the below (aircode - not tested)

IF(AGGR(RANK(SUM(Turnover)), Customer) < 10, Customer, IF(AGGR(RANK(SUM(Turnover)), Customer) < 20, 'Customer 11-20', 'Others'))

HTH
Peter

View solution in original post

4 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Will setting the "Maximum Number of Slices" (in Presentation) to 10 give you what you need?

-Rob

Not applicable
Author

yes, it is the easiest way to get only top 10, but I need top 10 customers in one slice of pie and top 11-20 customers in another slice and Others in third slice.

Ryan

prieper
Master II
Master II

Should work with a calculated dimension like the below (aircode - not tested)

IF(AGGR(RANK(SUM(Turnover)), Customer) < 10, Customer, IF(AGGR(RANK(SUM(Turnover)), Customer) < 20, 'Customer 11-20', 'Others'))

HTH
Peter

Not applicable
Author

Thanks!