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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors