on 12-03-2013 10:28 AM
Hello,
I want to make pie chart with our 5 top customer.
I want to show in the chart the percentage of sales for each of the five largest customers from the total sales and not just from the five largest customers sales.
How to do this?
Thank you
Elad
Hi,
Lets say your measure is sales.
Create a variable percentage = ([sales]/Sum(NoFilter([sales])) In Report)*100
Create a table using the customer and percentage.
Apply ranking to this and based on sales.
Turn the table to Pie Chart.
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
nofilter is a function which will allow to consider any other values which are not considered when you are applying a report level filter on a report.
For eg. If you have three countries C1,C2,C3 and sales for these countries.
If I apply a filter on country to display C1 and C2, I will see revenue for these countries only in the footer(if you re applying a sum).
But If I want the sum to include C3 also in calculation I will use nofilter.
Can you give me the data set you have and process you followed while using this variable.
My understanding is you have lets say 10 countries and there net realized turn over.
When you apply ranking on country lets say TOP 3 based on turn over, you only see top 3 values .
If you calculate percentage than it will only show percentage which is calcualted among these three countries.
So when I apply nofilter in sum(net turn over), it also considers other countries turn over in the calculation.
If you can tell the sample data and workflow. It would be easier.
Thanks
gaurav
when you show pie chart your top 5 will be plotted with a combined scale of 100% to get a Pie...
If that is ok then try the approach below... other wise change the chart to a bar chart or something else
You should create a variable and use this variable to plat your chart... which will make the chart not combine 100% but as you are showing number in a pie it will still be a circle
=[measure]/(Sum( NoFilter([measure])) in report ))
Hi Elad,
There is other way you can show this in pie chart.
You can map all other customers other than TOP 10 into a row as "others", and can display in the pie chart.
I have created a blog for this, if this helps you.
Thanks
Gaurav
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.