i need to disply sales in pourcentage with 2 dimensions (City and Product type) like this :
Product type = SIDI ALI and City = * (All cities are included)
which chart should I use?? i tested bar chart and mekko chart but it doesnt work
Thank you in advance
Solved! Go to Solution.
Thank you so much your solution works fine,
but i still have a little probleme, not all the pourcentage are written on the chart, for those who are small, they simply don't appear on the chart how can i solve this ?
do i need to resize the chart or something else ?
thank you in advance
Thank you for marking my answer as correct =)
There are some workaround ways for showing small values, and this should be the easiest:
You can add an extra string to city-dimension values, like:
city &' ('& num(aggr(sum(sales),city)/aggr(sum(total sales),city),'0.0%')&')'
Note: you must do it in the dimensions tab (select "city" dimension and click on Edit button)
After that your legend will be shown as: A (25%) B (33%) and so on.
Thank You for your anwser,
Well I can add the values beside the legend like you mention, but what the final user want is to display the values on the bar chart even if its small values
Thank you in advance.
First five expressions with bar icon - it's a bar for each city (defined by set analysis).
Next five expressions with dots icon - it's a dot with value for each city. Dots values are always shown so we can use them as values for each bar even for the smallest ones.
But we can't use the values as they are, so we should use Dual() function for indicating a visible value (percentage string) and a numeric value (where dot must be placed).
This is why it works only if you have fixed number of cities - you must define all values and bars manualy.