Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi there,
i am working with summary data and im tyring to calculate Profit Margin which is called "EM" in my data model. The calculation itself is correct but the total is not. I would like it to round to 100%
I do not have any cost data so im simply doing Profit/revenue
Here is a screenshot:
Regards,
Thomas
Solved! Go to Solution.
@Tmatti92 Try:
m_Total 3
VAR __table = SUMMARIZE(Sales,[Grade],[Service],[Region],"__Value",[m_Single])
RETURN
IF(HASONEVALUE(sales[Region]),[m_Single],SUMX(__table,[__Value]))
@Tmatti92 This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
@Greg_Deckler Hi Greg thanks for your reply. I am still seeming to struggle with calculating the % i have tried using your thread but am still having some errors.
firstly i tried this:
Then secondly this
m_Total 3
@Tmatti92 Try:
m_Total 3
VAR __table = SUMMARIZE(Sales,[Grade],[Service],[Region],"__Value",[m_Single])
RETURN
IF(HASONEVALUE(sales[Region]),[m_Single],SUMX(__table,[__Value]))