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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Chris_Ka123
New Member

Delete text in one column from another column (variable)

Hello guys,

 

I have the following topic.

I have a table with the first two columns (First one: postal code, city, district of the city, sometimes the street and number, information about km which should be deleted).

The goal should be the last column:

46145 Oberhausen (Sterkrade-Mitte)14,2 km14,2 km46145 Oberhausen
41061 Mönchengladbach (Stadtmitte), Hindenburgstraße47,6 km47,6 km41061 Mönchengladbach Hindenburgstraße
41236 Mönchengladbach (Rheydt), Hauptstraße 20049,4 km49,4 km41236 Mönchengladbach Hauptstraße 200

 

Sometimes I have only the zip code and city (Row 1), sometimes the name of the street (Row 2), sometimes the whole adress with the number of the street, but no space between the information out of column 2 (Row 3). 

So I have to delete the text from column 2 out of column 1. 

 

Do you know how I can achieve that?

 

Thanks in advance!

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @Chris_Ka123 

 

I'm confused.  You say the desired result is what's shown in Column 2.  But then you say you need to delete the text in Col 2 from Col 1??

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Hi @PhilipTreacy , I think the format of the created table was not so great here. Sorry for that!

 

As a screenshot it would be easier to see:

Chris_Ka123_0-1680162895378.png

So column 1 + 2 is available, column 3 should be the goal.

 

Br,

Christopher

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.