The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello -
I am having trouble with the profit margin calculation. Here are my measures:
1. Total Revenue = SUMX( Sales, Sales[Order qty] * Sales[unit price] )
2. Total Cost = SUMX( Sales, Sales[Order qty] * Sales[unit cost] )
3. Total Profit = [Total Revenue]-[Total Cost]
4. Profit Margin = DIVIDE( [Total Profit], [Total Revenue], 0 )
However, when I show profit margin in a visual, all of the items in the category have the same profit margin. Any suggestions?
Thanks
It turns out the dataset was manually generated and the profit margin calc was indeed accurate. Sorry for the confusion.
@CMajka8 This generally indicates a missing relationship somewhere but if the Total Revenue and Total Cost columns in your visual are the measures you indicate that's rather strange.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
18 | |
18 | |
17 | |
15 | |
13 |
User | Count |
---|---|
36 | |
34 | |
19 | |
18 | |
16 |