Forum Discussion
Anonymous
6 years agoNot applicable
Gross Margin Calculation
Hi I am trying to calculate the Gross Margin of Revenue / Non Revenue line items, my formula is below however it is not producing the desired result, hoping someone can help. Gross Margin = DIVID...
- 6 years ago
Try using ALL() in your filter statement;
DIVIDE(sum('Fact'[Actual]),CALCULATE(sum('Fact'[Actual]), FILTER(ALL('Grouping'),'Grouping'[DBC_Grouping] = "Rental Revenue")),BLANK())Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
JarroVGIT
Resident Rockstar
6 years agoTry using ALL() in your filter statement;
DIVIDE(
sum('Fact'[Actual])
,CALCULATE(sum('Fact'[Actual]), FILTER(ALL('Grouping'),'Grouping'[DBC_Grouping] = "Rental Revenue"))
,BLANK()
)
Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
- Anonymous6 years agoNot applicable
JarroVGIT Brilliant!!! Thank you for that.