Skip to main content

Power BI

Needs Votes

Support relative path to excel/csv sources

Vote (1151) Share
Boris Lipschitz's profile image

Boris Lipschitz on 08 Sep 2015 10:25:40

Currently, when excel file is loaded to Power BI, the absolute filepath is captured in the M query. It would be nice if relative filepath was supported. Thus we could place excel file next to pbix and not worry about the file location (local machine, shared folder on server or onedrive)

Comments (87)
Boris Lipschitz's profile image Profile Picture

Alejandro Contreras Sepulveda on 04 May 2021 22:50:45

RE: Support relative path to excel/csv sources

PowerBI is an exceptional tool, BUT developers need to change their mindset: advanced users? we are enthusiastic but too few to blow other tools (like QlikView or even think-cell) out of the water. The average user will always be unable to get inside the model and make changes without making a mess, but they are the many.

I spend a good part of the day explaining (among other basic things, like resetting filters) why they shouldn't change the folder the files are stored in, and how to change file paths, problems I didn't have with QlikView (Oh how I miss the old . and .. folder commands)

At this point, basic features such as this one should've been addressed.

Boris Lipschitz's profile image Profile Picture

AAB TRA on 03 May 2021 07:54:46

RE: Support relative path to excel/csv sources

Absolutely bizarre that this hasn't been implemented years ago!

Boris Lipschitz's profile image Profile Picture

Y0003974 f on 23 Apr 2021 22:43:43

RE: Support relative path to excel/csv sources

Need to package up a report and a folder with excel files in for a consumer. They have no technical expertise. Once they unzip the query will break due to the file paths. This is a basic requirement, c'mon!

Boris Lipschitz's profile image Profile Picture

Alejandro Medina Familia on 18 Mar 2021 16:34:17

RE: Support relative path to excel/csv sources

Please add relative path capabilities. This is such a powerful tool, but without relative path, non technical users need to manually set sources when sharing or moving the files. this introduces a lot of friction and more chances of things breaking.

Boris Lipschitz's profile image Profile Picture

Amr IBRAHIM on 17 Mar 2021 20:58:29

RE: Support relative path to excel/csv sources

This needs to be Implemented ASAP, we can't even get the path of current folder........

Boris Lipschitz's profile image Profile Picture

Mircea Ontanu on 08 Jan 2021 16:17:27

RE: Support relative path to excel/csv sources

This is so basic but missing for such a long time. How should I teach a non technical person to update the path that points to a file next to the template full of pivots. Such a pain. I just want to send to the client a template report and the data csv file. They should open the report but it will fail because the path to the data is not the same as on my computer. Yeah one solution would be to put the data in the same excel file, but then.. they have to copy paste the new data when is necessary and click refresh all.

Boris Lipschitz's profile image Profile Picture

Wayne Harrison on 21 Oct 2020 13:42:41

RE: Support relative path to excel/csv sources

I'm amazed still that after 5 years that this still isn't there! - I'm up voting this for two reasons, yes to the original idea of relative paths but also to be able to query where the currently opened PBIX file was loaded on, that way there is a small change to go update the content of the 'variable' work around that's been used FOR THE LAST FIVE YEARS to just read where the PBIX was loaded from instead. Best of both worlds then!

Boris Lipschitz's profile image Profile Picture

Prodegee TTA on 13 Oct 2020 18:04:48

RE: Support relative path to excel/csv sources

Support a relative path is not an idea, is a BASIC feature and the fact that it is not yet there tells me that MS has no interest in Power BI being used.

Boris Lipschitz's profile image Profile Picture

E Daugherty on 14 Sep 2020 21:43:32

RE: Support relative path to excel/csv sources

This would be especially helpful for those getting data from R, where the preferred practice is to leave the default working directory alone. This means any file paths used will be relative to that default wd.

Boris Lipschitz's profile image Profile Picture

David Rychlý on 12 Aug 2020 20:28:35

RE: Support relative path to excel/csv sources

After five years of still missing this core functionality for any software working with external files. Microsoft, you should finally start thinking about the usability of your products...