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
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
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.