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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Kudoed Authors