Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
17 | |
10 | |
10 | |
8 | |
6 |
User | Count |
---|---|
18 | |
16 | |
15 | |
12 | |
10 |