Forum Discussion
Problem with Ratios
If it is possible, I want to have all the ratios calculated for category in a single column so that I can see wich is the incidence of every cost category on the total of the revenues.
For example, if I use numerical data I obtain this result:
I guessed to obtain what I want simply using the function of rapid calculation choosing the percentage of total, but what I obtain is this chart:
So, this last chart is exactly what I want to see at the end, but with the right ratios.
Thank you,
Alessandro
Thanks for your description, I seem to get the point. I think we need to do some transformation for the original dataset with following steps.
- In Query Editor, remove two columns of “Type” and “COSTS”.
- Unpivot all the columns except the first column of “YEAR”.
- Click ‘Group By’ and set as below.
- Create a measure with following formula.
Ratio = SUM ( 'ESTRAZIONE DATI'[NewValue] ) / CALCULATE ( SUM ( 'ESTRAZIONE DATI'[NewValue] ), 'ESTRAZIONE DATI'[Attribute] = "REVENUES" )
Best Regards,
Herbert
- Aletom710 years agoRegular Visitor
The solution is good, but for me is not useful. Because I want to see these percentages not on the total of costs and revenues, but on the these totals belonging to particular CDC (center of costs, localities).
Is it possible to add this feature?
Thank you,
Alessandro