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
WJ876400
Helper IV
Helper IV

Merging Columns

Hi

 

I have two columns like below. The main data I want to use is from Column B, however when column B has a blank I want to use the data in the corrosponding cell in column A so I end up with column C. Is this possible, thanks in advance

 

ABC
 GreenGreen
 BlueBlue
 RedRed
Yellow Yellow
 PinkPink
Black Black
Purle Purle
 OrangeOrange

 

 

1 ACCEPTED SOLUTION
jthomson
Solution Sage
Solution Sage

In Power Query this is a pretty simple if [column b] <> "" then [column b] else [column a], DAX would be similar

View solution in original post

4 REPLIES 4
jthomson
Solution Sage
Solution Sage

In Power Query this is a pretty simple if [column b] <> "" then [column b] else [column a], DAX would be similar

Hello - would you have suggestion if i have more than 2 columns? Thanks! 

@jthomson  sorry i put this as solved but it is not working. When i put in the "" it doesnt work with the measure

 

thanks


 

Maybe try null instead dependent on how exactly your data handles blanks

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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