Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
109 | |
89 | |
76 | |
66 |
User | Count |
---|---|
125 | |
111 | |
100 | |
83 | |
71 |