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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Summation across all rows of the minimum across columns

Example table below. The Column C is the minimum across columns A and B for the same row. The final, evaluated number is the sum of all the values in COlumn C. I'm lost as to how I'd implement this simple calculation in powerbi. Any help will be greatly appreciated.

 

ABC = min (A,B)
205020
305030
455045
675050
905050
885050
   
Sum of Col C245
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try a new measure like

sumx(Table, if([A]>[B], [A], [B]))

 

Else create a new  column and then have sum

C = if([A]>[B], [A], [B])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Thanks - it works perfectly. Much appreciated.

Thanks for the confirmation. Please mark the solution so that other can get benefitted from it

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@Anonymous , Try a new measure like

sumx(Table, if([A]>[B], [A], [B]))

 

Else create a new  column and then have sum

C = if([A]>[B], [A], [B])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

A follow up question, if I may - is there a way to create a data table like in excel with the 'B' values varying from say 25 to 200, and the resultant sumx(Table, if([A]>[B], [A], [B])) providing the output in an adjacent column?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.