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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Giovanni_PBI
Regular Visitor

Extracting digits from a text string

Hi,

I'm searching for a best-practice method to solve the following problem. I'm trying to extract a 5/6 length digit from the following text string.


I want to extract the 6 length digits from the page column for each unique URL and return the result in the VacancyId column.

There are a lot of different url structures in the Page column. 

Is there a best-practice approach for this?


1 ACCEPTED SOLUTION

3 REPLIES 3
Zubair_Muhammad
Community Champion
Community Champion

@Giovanni_PBI

 

If these are the only numbers in the string, you can add new custom column as

 

=Text.Select([Page], {0..9})

 

 

 


Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

Hi Zubair,

Thank you very much, that's very helpfull. 🙂

Unfortunately these are not the only numbers in the string.

The other strings look like this;


Is there a best-practice way to solve this?

HI @Anonymous

 

I believe the post got duplicated.

 

Try my solution in the post below

 

https://community.powerbi.com/t5/Desktop/How-to-extract-5-6-length-ID-numbers-from-a-text-string/m-p/609815/highlight/false#M290575


Regards
Zubair

Please try my custom visuals

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.