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 (84)
RE: Support relative path to excel/csv sources
Whilst we wait for this feature to be implemented, in order to to ease the pain, you can define a variable that contains the folder, so you only have to change a single place: https://stackoverflow.com/a/52895973/211672
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.
RE: Support relative path to excel/csv sources
But do support also .\..\..\dir1\dir2\file.xlsx, please. Would be absolutely neccessary!
RE: Support relative path to excel/csv sources
.\filename.csv
vs
D:\dropbox\excelfiles\working\filename.csv
RE: Support relative path to excel/csv sources
need ittt!!!!!
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.
RE: Support relative path to excel/csv sources
It is ridiculous that this is not yet supported
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.
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.
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