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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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/


Regards
Zubair

Please try my custom visuals

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/


Regards
Zubair

Please try my custom visuals

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.