Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |