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
ImG00dAtPowerBI
New Member

Compare A to SUM of B and C

Hi PowerBI Community!

 

Pretty new to this thing but I'm trying to wrap my head around the formulas.

 

I need to make a comparison of A to the SUM of B and C to find the missing amount between them but I don't know where to start.

 

Cheers

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @ImG00dAtPowerBI 

Thanks for reaching out to us.

you can try this measure,

Measure = 
var _A= MAXX(FILTER('Table','Table'[Column1]="A"),[Column2])
var _B= MAXX(FILTER('Table','Table'[Column1]="B"),[Column2])
var _C= MAXX(FILTER('Table','Table'[Column1]="C"),[Column2])
return
_A-(_B+_C)

in this measure, _A, _B and _C get the value of A, B, C.

vxiaotang_0-1665045520821.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @ImG00dAtPowerBI 

Thanks for reaching out to us.

you can try this measure,

Measure = 
var _A= MAXX(FILTER('Table','Table'[Column1]="A"),[Column2])
var _B= MAXX(FILTER('Table','Table'[Column1]="B"),[Column2])
var _C= MAXX(FILTER('Table','Table'[Column1]="C"),[Column2])
return
_A-(_B+_C)

in this measure, _A, _B and _C get the value of A, B, C.

vxiaotang_0-1665045520821.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

tamerj1
Super User
Super User

HI @ImG00dAtPowerBI 
What are A, B and C? Are they columns in the same table or measures? How does your report look like?

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.