cancel
Showing results for 
Search instead for 
Did you mean: 
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?

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors