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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
vmangalkar
New Member

Issue in adding a custom column which should remove the initial numbers from the start of the string

Hello,

I am facing a issue in adding a custom column which should remove the initial numbers from the start of the string.

Original TextExpected Text
19 TestTextTestText
2012 Test TextTest Text
Test Text1Test Text1
1978 TestText 23TestText 23


In excel I used to do it using formula: [=IF(ISNUMBER(VALUE(LEFT(W2, 1))), MID(W2, FIND(" ", W2) + 1, LEN(W2) - FIND(" ", W2)), W2)]
but in Power Query editor I am not able do so.
Any help is appriciated. Thank you!!

1 ACCEPTED SOLUTION
AlienSx
Super User
Super User

Hello, @vmangalkar 

Text.TrimStart([Original Text], {"0".."9", " "}))

View solution in original post

2 REPLIES 2
vmangalkar
New Member

Thank you @AlienSx this worked 👍

AlienSx
Super User
Super User

Hello, @vmangalkar 

Text.TrimStart([Original Text], {"0".."9", " "}))

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors