Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
7 |