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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
leopoldvili_1
Helper I
Helper I

How extract digits from text, without using R and python scripts.

Hi, I would like to extrat digits from the text, unfortunatly I cant use R script and regex as refreshing is not working on Server.

Here is example: it is always 5 digits, I would like output as it is in regex column. Also when texts includes "OD"-12900 it should not be extracted and it should be ignored and  as it is in regex column , or when digits is more/less then 5.

 

leopoldvili_1_0-1648195846234.png

 

 

Can any one give me some tips?

Thank you in advance.

 

2 REPLIES 2
amitchandak
Super User
Super User

@leopoldvili_1 , There is something known as split by digits and non digits in Split column in Transform Tab of power query, You can also use Text.Contains before that.

 

Split Column By Digit to Non Digit & Non Digit to Digit: https://youtu.be/tY4Yk1crS9s

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi, I tried  split by digits and non digits in Split column but it is not helping as my digits should be 5 and some text with digits should be exluded completly like OD-12900.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.