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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors