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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.