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
jwi1
Post Patron
Post Patron

Split string from left, based on letters

Hi,

 

I want to split values in a colum.

If the string starts with a letter of letters, I want to remove them.

But I only want to remove the letters on the left side of the string.

 

For example:

AM171081108RP must become 171081105RP

AMS28105832RCP must become by 28105832RCP

 

If the new values are placed in a new column, this is oke for me.

 

I have no idea how to do this, so your suggestions are highly appreciated!

 

John

 

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

You should be able to use the split column function in the query editor:
image.png

If you happen to have values that goes non-digit to digit multiple times you will need to piece those columns back together, like this:

Original columnOriginal column

SplitSplit

Custom columnCustom column

resultresult

Br,
Johannes


Connect on LinkedIn

View solution in original post

2 REPLIES 2
tex628
Community Champion
Community Champion

You should be able to use the split column function in the query editor:
image.png

If you happen to have values that goes non-digit to digit multiple times you will need to piece those columns back together, like this:

Original columnOriginal column

SplitSplit

Custom columnCustom column

resultresult

Br,
Johannes


Connect on LinkedIn

Hi Johannes,

 

This works for me, thanks!

 

John

 

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.