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

Get Fabric certified for FREE! Don't miss your chance! Learn more

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
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.