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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
CloudMonkey
Post Prodigy
Post Prodigy

Fasstest way to Changing file path for lots of excel files sources?

Hi,

 

My source files (about 40 of them) have been moved from one file director to another. Please does anyone know a quick way of changing all the file paths in the query editor?

 

Thanks,

 

CM

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@CloudMonkey 

 

I think there is no quick way.

 

But if you can make a one time effort of defining your folder/directory path in a parameter and then use this for creating dynamic File paths...it will save you time in future when you change the directory again

 

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @CloudMonkey ,

You can consider to create table with relative path of your files instead full path.(root folder path stored in query parameters)
After these steps, you can use root folder path + relative path to get data.
If your files has been changed to other direction, you can simply change stored root folder path to help power bi get data from new path.

Regards,

Xiaoxin Sheng

Zubair_Muhammad
Community Champion
Community Champion

@CloudMonkey 

 

I think there is no quick way.

 

But if you can make a one time effort of defining your folder/directory path in a parameter and then use this for creating dynamic File paths...it will save you time in future when you change the directory again

 

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.