Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
hello all,
new user. super limited programming knowledge. first time on forums (advice appreciated if going about it wrong)
I have a URL query in PowerBI (https://websiteurl/api/thisisthetextiwant/01/moreurltexthere) and I want to bring the specific text highlighed into a column in my query. the URL is the source for my table, it does not exist in its own table. I want to run future queries and the highlighted text is the only thing which is different and needs its own column. Im just lost on what type of query this would be. THe URL is always the same length and construction so my thought was how can I get the text "23 characters from the left" and until the "/01".
Table source: (https://websiteurl/api/thisisthetextiwant/01/moreurltexthere)
| Header 01 from URL json | Header 02 from URL json | Header 03 from URL json | Custom Column |
| data | data | data | thisisthetextiwant |
| data | data | data | thisisthetextiwant |
Ok. we are getting somewhere but still an error.
the URL isnt in the dataset itself, its where the dataset it coming from. Am i missing something....again?
So what you are doing I understand. My challenge is I have no existing table with the URL. The URL text I am wanting is my source URL where I am then extracting table data from. The table data itself does not have the URL available (unless theres a way to do that). See attached image of the full URL for my source. From my applied steps, the goal was to extract the URL text and attach it to every record value in the table. Make sense?
the name of my column i used was [url] you need to change "url" with your column name containing the url and make sure its case sensitive
what is your url column called?
I called it "database"
hello @goober04 in power query go to add columns and choose new custom column
type in
let
fullURL = [url], // Get the full URL from the current row
extractedText = Text.Middle(fullURL, 23, Text.PositionOf(fullURL, "/01") - 23) // Extract the desired substring
in
extractedText
Appreciate the quick response @eliasayyy . Tried it and this is the result. What am I missing here?
try this
let
fullURL = [url], // Get the full URL from the current row
extractedText = Text.Middle(fullURL, 23, Text.PositionOf(fullURL, "/01") - 23) // Extract the desired substring
in
extractedText
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!