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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
alexsimpson
Helper I
Helper I

Combining Columns with overlapping data

I have a table that has overlapping data. How can I create one merged column whereby if there are blanks in one it takes the value from the other and if there are blanks in the other it returns the value from the other. Where the data overlaps it just returns the value.

 

When the data overlaps the values are the same. I am trying to do this through Query Editor.

 

Any help would be much appreciated.

 

Many thanks in advance.

 

Kind regards,

 

Alex

2 ACCEPTED SOLUTIONS
kaiserj
Advocate I
Advocate I

Hi,

 

just add a (conditional) column and create an if-statement kinda like: if [col1] = "" then [col2] else [col1]

 

Regards,

Julian

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

 

Try this

 

=if [col1] = null then [col2] else [col1]


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

Try this

 

=if [col1] = null then [col2] else [col1]


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
kaiserj
Advocate I
Advocate I

Hi,

 

just add a (conditional) column and create an if-statement kinda like: if [col1] = "" then [col2] else [col1]

 

Regards,

Julian

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.