Forum Discussion
Market Share Percent In Ribbon Chart - % Of Column Total
- 7 years ago
Taking deldersveld solution into consideration a ribion chart with Market Share Trends can be created. I used the formulas below and tested it for accuracy and it seems to work:
AllDivisionTracking := CALCULATE ( DistinctCount([TrackingNumbers]),FILTER(DateTable,DateTable[Date]), ALL ( Divisions ) ) PercentOfTotal := DIVIDE ( DistinctCount([TrackingNumbers]), [AllDivisionTracking] )
I added an external date table that was used in the calculation.
I'm having the exact same problem but I think my data is set up slightly differently and I can't figure out what is going wrong. My data looks like the image attached.
I want the X axis on the chart to be Lifecycle Stage and the Y axis to be % of total cancellations by lifecycle stage, with each column split by cancellation reason.
I'd also like to be able to filter the resulting chart by geo and/or product type.
These are the measures I tried:
cancellation_reasons_per_stage =CALCULATE(SUM('Table 1'[Count]),filter('Table 1','Table 1'[Lifecycle Stage]),ALL('Table 1'[Cancellation Reason]))
%_of_total = DIVIDE(SUM('Table 1'[Count]),[cancellation_reasons_per_stage])
Thanks!