This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi,
I am trying to calculate a gross profit based on sales and COGS.
I have two measures: [total sales] and [total cost of sales and services].
I created a measure:
e.g, the first line should be (320091-218214=101877) and not 1733810.
Can you please help?
thank you!
Maya
Total sales was
@Anonymous , I see this as a problem, multiplication should happen at line level or you should force a level
assuming AllocationRate is also a measure
on a common dimension
sumx(Values(Dim[Dim]),[AllocationRate]*CALCULATE(sum(lvl2_Expenses[Cost of sales and services])))
Hi Amit,
AllocationRate is a column. would that syntax still work?
@Anonymous , seem strange, can share calculations for [Total Sales]-[Total Cost Of Sales and Services].
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 33 | |
| 31 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 55 | |
| 31 | |
| 24 | |
| 23 |