Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.
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.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
19 | |
13 | |
10 | |
9 | |
9 |