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
georgec96
Helper II
Helper II

Nested IF Statement

Hi All, I have a question about an nested if statement and I couldn't find an answer anywhere.

 

I have the following two columns

 

Column1Column2
222
blank9
411
blankblank
634
1blank
2455
blank124

 

I would like to create a new column using DAX as follows : IF column 1 is blank take the value from column 2 if column 2 is blank then take the value from column 1 and if both columns are blank leave it as blank.

 

Been trying to find a solution for a few hours now and can't figure it out.

 

Any help much appreciated.

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @georgec96 

please use

COALESCE ( TableName[Column1], 

TableName[Column2] )

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @georgec96 

please use

COALESCE ( TableName[Column1], 

TableName[Column2] )

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.