Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Measures

Hi ALl,

 

I am a beginner and was trying to work out a new measure by subtracting 2 measures. To elaborate, I have a tab "Revenue" wherein i have calculated "total Revenue" measure. Similarly, another tab "COS" wherein i have calculated "total Cost". I want to compute Gross profit, but the calculation is not correctly showing the right numbers.  

So my query is , can we write a measure between 2 measures:

aka "Total Rev" - "total Cost" = Gross profit

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You need to edit the relationship between two tables. Then you can subtract these two measures to get correct results.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You need to edit the relationship between two tables. Then you can subtract these two measures to get correct results.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
AlB
Community Champion
Community Champion

Hi @Anonymous 

Sure you can but you have to reference the mesures in the right fiormat, not with "" 

Gross profit = [Total Rev] - [total Cost]

 

Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.

Cheers  Datanaut

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.