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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
matg
New Member

Linking Excel files - Relative? Find and Replace

I have a Power Bi file that is linked to 10's of Excel files which are stored in the cloud and synced locally.

 

The file is edited by myself and a colleague. Everytime I open it I have to check the data sources are valid and if its been edited by my colleague relink all the Excel files which is time consuming and laborious. Of course once I save it and my collegaue then wants to edit it he has to go through the same proces.

 

Is there a way to either make the paths to the files relative rather than absolute if not is there a way to do a find and replace on the data source paths?

 

Thanks

1 ACCEPTED SOLUTION
MarcelBeug
Community Champion
Community Champion

My suggestion is to use a parameter based on a list with possible filepaths.

In this video I show an example in which files are read from a folder as determined by a parameter.

This example uses the "Combine Binaries" functionality that was fully changed with the November 2016 update of Power BI Desktop.

In the video I adjust "Sample Binary" so it will always dynamically point to the first file in the folder, as explained in this idea

 

Maybe you just read individual Excel files, but the concept remains the same: create a parameter and a list with possible filepaths, and replace all hard coded file paths with the parameter.

Specializing in Power Query Formula Language (M)

View solution in original post

1 REPLY 1
MarcelBeug
Community Champion
Community Champion

My suggestion is to use a parameter based on a list with possible filepaths.

In this video I show an example in which files are read from a folder as determined by a parameter.

This example uses the "Combine Binaries" functionality that was fully changed with the November 2016 update of Power BI Desktop.

In the video I adjust "Sample Binary" so it will always dynamically point to the first file in the folder, as explained in this idea

 

Maybe you just read individual Excel files, but the concept remains the same: create a parameter and a list with possible filepaths, and replace all hard coded file paths with the parameter.

Specializing in Power Query Formula Language (M)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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