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

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.

Reply
elijah2018
Helper I
Helper I

HELP ! Importing data from changing url

Hello everyone, 

 

This is my very first message on a forum like this so if my question hard to understand or incomplete im sorry in advance. 

 

But here is the problem im dealing with. 

So the company im an intern in wants me to connect Power BI to their buisness. I have figured out how to download data from their API using the Desktop app, the thing is that it is about 40 tables i need and all have the same url string in the beginning it is only the end part that changes. 

They want me to try to download all data with just one call/query/click so i've read a lot of posts here about having a parameter in the URL, dynamic URL and so on. 

But from one of the post it seemed that I needed to first download one file and then edit so the last part of the URL is a parameter instead. But I want to define a parameter first and then by just one call download all the data into the different tables. 

 

As I'm typing this Q, I get that it might be hard to understand what I want or what the problem is, so let me see if I can give an example. 

 

Let's say I access the API with www.mydatasource.com/data/newdata and this takes me to a page that contains string like 

''sales'' 

''revenues''

''CostOfGodsSold'' etc and by adding one of those strings to the end of the URL it automatically downloads the data in a CSV file, i.e www.mydatasource.com/data/newdata/sales will download the sales data . 

 

So I wanna pass ''sales'', ''revenues'' and ''CostOfGodsSold'' as parameters when I first start Power BI desktop and then for Power BI to save all the data into separate tables. 

 

Thank you for your help in advance 

 

Best regards 

Elijah

1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

this article should help
https://blog.crossjoin.co.uk/2016/05/15/creating-m-functions-from-parameterised-queries-in-power-bi/

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

1 REPLY 1
Stachu
Community Champion
Community Champion

this article should help
https://blog.crossjoin.co.uk/2016/05/15/creating-m-functions-from-parameterised-queries-in-power-bi/

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.