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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MJHHBis
Frequent Visitor

Select number and text in to new column

Hi

 

I have a column that contains a lot of info. I need the zip code from that column and want to place it in a new column. The zip code is not always in the same place. See the example below:

 

A1 AMBU 18172 Schaduwrijk 3297SC Puttershoek PUTTHK bon 27397

A2 4645RT : Hazeduinen 1e Verdelingsweg Hazeduinen Putte 17286

 

I tried with Text.Selectbut but i can't figure out how to select a number with text.

 

Thanks for the help!

2 REPLIES 2
slanka
Helper I
Helper I

If the Zipcode is in the same format, 6 chars including first 4 as Digits and next 2 Characters (example: 1111AB), you can achieve in Query Editor using AddColumns -> "Column From Examples" -> Type your intended text as sample (query will pick the same from next).

 

Try and check it out.


@MJHHBis wrote:

Hi

 

I have a column that contains a lot of info. I need the zip code from that column and want to place it in a new column. The zip code is not always in the same place. See the example below:

 

A1 AMBU 18172 Schaduwrijk 3297SC Puttershoek PUTTHK bon 27397

A2 4645RT : Hazeduinen 1e Verdelingsweg Hazeduinen Putte 17286

 

I tried with Text.Selectbut but i can't figure out how to select a number with text.

 

Thanks for the help!



@MJHHBis wrote:

Hi

 

I have a column that contains a lot of info. I need the zip code from that column and want to place it in a new column. The zip code is not always in the same place. See the example below:

 

A1 AMBU 18172 Schaduwrijk 3297SC Puttershoek PUTTHK bon 27397

A2 4645RT : Hazeduinen 1e Verdelingsweg Hazeduinen Putte 17286

 

I tried with Text.Selectbut but i can't figure out how to select a number with text.

 

Thanks for the help!


 

Anonymous
Not applicable

Where is this data coming from? More importantly, does the source data have headers?  If so, then can use power query to transform this raw data into something useful. If there are no headers, I'm not so sure since I cannot really think of anything that sets the zip code apart....

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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