Hi
I am trying to calculate a measure which will take my cost category as a percentage of revenue. This is done with the 2 measures below which do not show any errors.
Monthly revenue Calculation
As a percentage of revenue.
I have a pivot table to material, I would like to see the material cost % proportionate to revenue for the month, however when I add the % Of Revenue measure it does not show anything. It seems that because the pivot table is filtered to material my revenue is not brought in which results in 0% calculation.
https://www.dropbox.com/s/7jd13soh28euohz/FormulaAsssist.PNG?dl=0
I am trying to calculate a measure which will take my cost category as a percentage of revenue. This is done with the 2 measures below which do not show any errors.
Monthly revenue Calculation
Code:
Revenue Calc:=calculate(sum([Actual]),filter(Categories,Categories[Category]="9"))
As a percentage of revenue.
Code:
% Of Revenue:=calculate(divide(sum([Actual]),[Revenue Calc],0),ALL(Categories[Category],Categories[Category]))
I have a pivot table to material, I would like to see the material cost % proportionate to revenue for the month, however when I add the % Of Revenue measure it does not show anything. It seems that because the pivot table is filtered to material my revenue is not brought in which results in 0% calculation.
https://www.dropbox.com/s/7jd13soh28euohz/FormulaAsssist.PNG?dl=0