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