Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
I have a coumn with URLs from which I would like to extract the first occuring number. My constraints:
It seems quite simple but I haven't found any previous posts sharing a solution to a similar issue...
Any ideas how I could achieve this?
I am thinking that if I can find the starting and ending position of that number then I could perhaps use splitter.SplitTextByPosition...
Solved! Go to Solution.
Text.Combine(List.FirstN(
List.Select(
Text.Split(Text.Select(
[Column1],{"0".."9","/"}),"/"),(x)=>x<>""),1))
Text.Combine(List.FirstN(
List.Select(
Text.Split(Text.Select(
[Column1],{"0".."9","/"}),"/"),(x)=>x<>""),1))
It workssssssssss! thank you so much for the quick support! Hope this helps others in the future.
Here is an example.
My column would have URLs as such:
/questions/11928/qwertyuio-asdfghj-34.html
/questions/7229/can-you-share-your-experience-in-developing-a-trai.html?childToView=8665#answer-8665
/articles/11867/jhbvcfgtyujn-4.html
/idea/11875/kjhgukjnk.html
/content/idea/234/kjhgukjnk.html
/content/articles/888383/jhbvcfgtyujn-4.html
The extract would be as such:
11928
7229
11867
11875
234
888383
post an example and the desired result
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
82 | |
62 | |
45 | |
41 | |
40 |