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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
young351
Frequent Visitor

Sum columns that contain blank values

I need to sum two columns (WHM Gas + WHM GL) that contain blanks.  I do not want to replace the blanks with zeros, but if a row contains a blank I need to treat it as zero and return the value from the other column:

young351_0-1634394466885.png

 

1 ACCEPTED SOLUTION
Tweeg
Helper I
Helper I

@young351  This works (not sure if it is the prettiest way to do it):

Sum WH GAS and GL = 

VAR

column11 = IF(ISBLANK(Sheet1[WHM Gas]), 0, Sheet1[WHM Gas])

VAR

column22 = IF(ISBLANK(Sheet1[WHM GL]), 0 , Sheet1[WHM GL])

RETURN

column11 + column22

 

Screenshot 2021-10-16 214428.png

 

View solution in original post

1 REPLY 1
Tweeg
Helper I
Helper I

@young351  This works (not sure if it is the prettiest way to do it):

Sum WH GAS and GL = 

VAR

column11 = IF(ISBLANK(Sheet1[WHM Gas]), 0, Sheet1[WHM Gas])

VAR

column22 = IF(ISBLANK(Sheet1[WHM GL]), 0 , Sheet1[WHM GL])

RETURN

column11 + column22

 

Screenshot 2021-10-16 214428.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors