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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Iterate over the Column [URLs] then replace that URL in Power Query source

Hi, i've been trying everything now still could not make it work

 

I've working on REST API and get the data from power BI service. So i need to get the source URLs which is static:

They have one Workspace with contain mulitiple datasets.

Here i get all the workspaceID and onther Table i get Dataset but does not have workspace id. However i want to loop over it by using URLs to make it dynamic.

https://drive.google.com/file/d/14NBGnJuK1EjmTnNFu_XGZbJ4drcZPwn_/view?usp=sharing 

https://drive.google.com/file/d/14RaCMR1batK4-HBYqGJx82h06_MTESAx/view?usp=sharing 
PLease the image 

1 is Table and onther is Query

The table have a column that have URLs. And Query have syntax to get data from REST API
So, i want to iterrate the URLs row and input it to the Query

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

You could first transform the Query into a custom function which requires a parameter for the URL string, just like below. Let's call it fQuery. 

vjingzhang_0-1685497833240.png

 

Then go to the Table that has URLs, add a new column by invoking this custom function. Use URLs column for the File Parameter. This custom function will be invoked for every row in the table. 

vjingzhang_1-1685498282625.png

 

This is a more detailed document about Using custom functions in Power Query - Power Query

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

You could first transform the Query into a custom function which requires a parameter for the URL string, just like below. Let's call it fQuery. 

vjingzhang_0-1685497833240.png

 

Then go to the Table that has URLs, add a new column by invoking this custom function. Use URLs column for the File Parameter. This custom function will be invoked for every row in the table. 

vjingzhang_1-1685498282625.png

 

This is a more detailed document about Using custom functions in Power Query - Power Query

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors