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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
maccaronda
Frequent Visitor

Extract Number from column

Hi there

 

I have a file that is messy as anything and I would like to extract the numbers out of a particular column (some have combination of numbers and text and others just numbers. The column looks like this (sorry I had to paste as plain text)

 

Column A

58443
SO Stage
W58843
W58843-PB

57684
SO Stage
W57684
W57684-PB

 

Then the final result should look like this 

 

Custom Column

58443

58843
58843


57684

57684
57684

 

Any help would be greatly appreciated!

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @maccaronda 

 

Try this 

=Text.Select( [Column A], {"0".."9"} )

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

4 REPLIES 4
john_dawson
Helper I
Helper I

Very elegant; thanks

Mariusz
Community Champion
Community Champion

Hi @maccaronda 

 

Try this 

=Text.Select( [Column A], {"0".."9"} )

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Hey @Mariusz ,

 

this is a brilliant solution. I was looking for my approach, as I did not bookmark it. I'm happy that I did find your approach first, very elegant.

 

~Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Thanks!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.