Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Pie Chart - How to summarize names of values / categories not in the Top N

$
0
0

I'm looking for a way of showing a % of total sales for each customer.  However, I would like to have names for all the customers in the top 10 and then I would like for the remaining customer names to just show as "Other" or "Misc".  This way you can tell if most of the sales are coming from the top customers, or if the customers outside the top 10 are really the majority.  So, it would show customers 1-10, and then everyone else in the same chart.  I have the top N rank already, but I don't see a way to do an if statement that changes the customer name based on the rank.  

I tried this as a Measure and a Column:

_ClientSummary = IF([_ClientRank]>10,"Other",Sales[ClientName])

 

Any suggestions?


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>