Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Luisanabria
Creator
Creator

Pie Chart

Hi all

I have a dude, lm using a Pie Chart to show the top 10 ranking and that is working ok, but in this case, l want to add to that top 10 my country.

Example:

Add to this TOP 10, My country

fernandoflogtz_1-1668028558955.png

 

Is possible to do that?

Thank you all

Labels (3)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Instead of using Field limitation  use a calculated dimension, 

example

Dimension

=aggr(only({<country={"=rank(Sum(sales),4,2)<=10 or country='Mexico'"}>}country),country)

Measure

sum(sales)

 

 

Or if you still want to retain 'Others' slice then as below

Dimension

=aggr(if(rank(sum(sales),4,2)<=10 or country='Mexico',country,'Others'),country)

Measure

sum(sales)

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

View solution in original post

4 Replies
vinieme12
Champion III
Champion III

You haven't mentioned what exactly do you need to add?

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

Add another country in this case...that Top 10 and Mexico 

 

I dont know if is possible to do that 

 

vinieme12
Champion III
Champion III

Instead of using Field limitation  use a calculated dimension, 

example

Dimension

=aggr(only({<country={"=rank(Sum(sales),4,2)<=10 or country='Mexico'"}>}country),country)

Measure

sum(sales)

 

 

Or if you still want to retain 'Others' slice then as below

Dimension

=aggr(if(rank(sum(sales),4,2)<=10 or country='Mexico',country,'Others'),country)

Measure

sum(sales)

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

Thank You it was really helpful

 

Another thing l learned by you.