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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors