Skip to main content
Microsoft Idea

Power BI

Needs Votes

Support relative path to excel/csv sources

Vote (1112) 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 (83)
Boris Lipschitz's profile image Profile Picture

Power BI User on 05 Jul 2020 23:30:38

RE: Support relative path to excel/csv sources

Pretty standard feature that is required here. It makes it so that I can't send the file and the data source to colleagues and off-load the refreshing responsibility to them. I need to edit the data source every single time I make a change to their project.

Boris Lipschitz's profile image Profile Picture

difi on 05 Jul 2020 23:29:46

RE: Support relative path to excel/csv sources

But do support also .\..\..\dir1\dir2\file.xlsx, please. Would be absolutely neccessary!

Boris Lipschitz's profile image Profile Picture

Bilbo on 05 Jul 2020 23:26:12

RE: Support relative path to excel/csv sources

.\filename.csv
vs
D:\dropbox\excelfiles\working\filename.csv

Boris Lipschitz's profile image Profile Picture

Power BI Ideas Admin on 05 Jul 2020 23:23:36

RE: Support relative path to excel/csv sources

need ittt!!!!!

Boris Lipschitz's profile image Profile Picture

Adam on 05 Jul 2020 23:19:48

RE: Support relative path to excel/csv sources

Hi, super important feature. Not only for the flexibility of being able to distribute these models with their source files, but also because if your model is in an older excel version, when updated, the 'existing connections' option is no longer available, so you cannot even edit the path any more.

Boris Lipschitz's profile image Profile Picture

John Jenkins on 05 Jul 2020 23:12:35

RE: Support relative path to excel/csv sources

It is ridiculous that this is not yet supported

Boris Lipschitz's profile image Profile Picture

Gabriel on 05 Jul 2020 23:08:59

RE: Support relative path to excel/csv sources

I would expect Microsoft would consider such a useful idea, almost 3 years since the suggestion was made and not available yet. The vitality of a software product is done by the amount of developers and end-users. Most passionate end-users are the ones making these suggestions.

Boris Lipschitz's profile image Profile Picture

MarcosT100 on 05 Jul 2020 23:06:46

RE: Support relative path to excel/csv sources

I would agree this would be a great feature. Another option that may be easier to implement is to enable PowerBI to identify its own path so we can then use this as a parameter when pointing to datasources stored in the same folder. Excel has a simple formula to identify its own path which is SourceFilename = ThisWorkbook.Path so perhaps PowerBI can replicate this.

Boris Lipschitz's profile image Profile Picture

Ziv Leyes on 05 Jul 2020 23:05:21

RE: Support relative path to excel/csv sources

I think it will be very useful to support relative path, this way, you can send a pbi file to someone else and ask them to place the source files in the same folder.
The query will be looking at it's own containing path as the local path. so if the source is somefile.csv, it will defaultly look into the current folder it's running from

Boris Lipschitz's profile image Profile Picture

Roan Isaku on 05 Jul 2020 22:59:22

RE: Support relative path to excel/csv sources

Any update from the dev team on relative paths?