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

Join 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.

Reply
ipon70
Helper I
Helper I

Dynamically Change Query Source

Hopefully I didn't miss this being answered elsewhere.

What I am trying to do is have an excel file called "Feed". Inside the "Feed" file in the first column and row is a link "\\network\scr\data\cube\" . That link sits in row 1 column A.

I would like to use that to change the source of another query.

Currently the main query gets data from "\\network\scr\data\cube\fillings.xlsm" I would like to be able to change the "feed" "\\network\scr\data\cube_model\fillings.xlsm" and have the main query update to that source path.

So basically one excel file updates the path for another query inside the same report. The "feed" path wouldn't change, just the other queries it feeds.

 

I hope that makes sense, please reach out if you need more information.

 

1 ACCEPTED SOLUTION

You can parameterize the source and then save your file as a Power BI Template.  That way the user will be asked to provide the parameter value upon opening.

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

Is that only for local processing or are you expecting this to work in the Power BI Service (hint: it won't) ?

This would be if someone downloads the report to work on their local desktop and it needs a different source before being uploaded.

 

You can parameterize the source and then save your file as a Power BI Template.  That way the user will be asked to provide the parameter value upon opening.

I haven't used that feature so let me play with that idea and post back if it doesn't work, or accept it as a solution.  Thanks again for the direction and help.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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