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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Merge two columns in Power Query (M)

Hi all,

 

Anyone knows howto merge two columns in Power Query with space as delimiter but not on the blank values?
Ex:

Column1    Column2  Merge

A                 A             A A (space between)

B                 B              B B (space between)

C                                 C (without space at the end)

D                                 D (without space at the end)

E                 E               E E (space between)

 

I',m going to do this on Street name, street number and street letter. There is a lot of addresses without street letter, but I dont want to have the space at end on the street name + street number without street letter in the tables (null)

 

 

Regards
Marius

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous 

 

You can use this custom column

 

=Text.Trim([Column1]& " "&[Column2])

View solution in original post

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous 

 

You can use this custom column

 

=Text.Trim([Column1]& " "&[Column2])

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.