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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.