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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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})

 

 

 

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?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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