Forum Discussion
Mana_786
8 years agoFrequent Visitor
Gross Margin
Hi Dear All, I hope some body can guide me properly .I have a probelm to get figures from Gross margin in Power BI. My Data type is somehow like this. Branch No Branch Name Area ...
- 8 years ago
Hi Mana_786,
You need to create a measure to calculate the total Gross margin using the formula below.GM percentage = DIVIDE(SUM(Table1[GM]),SUM(Table1[Sales]))
Please see the expected result, 40%=(1000+1000)/(3000+2000).
Best Regards,
Angelia
v-huizhn-msft
Microsoft Employee
8 years agoHi Mana_786,
You need to create a measure to calculate the total Gross margin using the formula below.
GM percentage = DIVIDE(SUM(Table1[GM]),SUM(Table1[Sales]))
Please see the expected result, 40%=(1000+1000)/(3000+2000).
Best Regards,
Angelia
gabriele
7 years agoRegular Visitor
In this solution there are a problem. If we have costs but revenue are 0, this formula return blank or optional value for zero division exception. I think that the real %profit must be " -100%"