Skip to main content

Power BI

Needs Votes

Support relative path to excel/csv sources

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

8e32ebd0 5bb5-434c-88e1-0143d7bd1d7b on 06 Jul 2020 00:08:45

RE: Support relative path to excel/csv sources

Please add this ASAP!

Boris Lipschitz's profile image Profile Picture

b6bfa55f c9c9-469c-99d8-9172c9af03e2 on 06 Jul 2020 00:08:08

RE: Support relative path to excel/csv sources

This is a basic implementation. I do not understand how this is not an option yet

Boris Lipschitz's profile image Profile Picture

53d66049 808a-4ccb-9666-0320764ae9aa on 06 Jul 2020 00:07:42

RE: Support relative path to excel/csv sources

Fundimental software development 101. This should never have been an issue in the first place...yet here we are...waiting...and waiting.

Boris Lipschitz's profile image Profile Picture

3f8970ec 08e0-4bdc-8322-b894053f3ee1 on 06 Jul 2020 00:07:35

RE: Support relative path to excel/csv sources

I'm a relatively new user. Loving PBI and working with big client companies that are not PBI users. I develop solutions and then it gets bogged down in the difficulty to transfer that solution. Do you know how many companies are not getting exposed to the beauty of PBI because this issue is not solved. Please make it happen.

Boris Lipschitz's profile image Profile Picture

a09cc874 e506-4f57-9b09-621922fc2410 on 06 Jul 2020 00:07:27

RE: Support relative path to excel/csv sources

It's been over a year guys:

Bump this from the backlog to top of current sprint or top of the "Active Tasks" Kanban column, por favor.... It seems like everyone and their mother who writes scalable or deliverable code needs this.

Perhaps:
File.CurrentExecutionPath
File.CurrentPath
(Excel.CurrentPath would be too much trouble due to sharing)

Boris Lipschitz's profile image Profile Picture

ab8831ea 2608-4d17-99b9-6c8614a1d23a on 06 Jul 2020 00:06:38

RE: Support relative path to excel/csv sources

Please work on this. I am in an environment where I can not link to the source database and have to export all the info to Excel files before I can load them into Power BI. I am using Power BI to create daily reports and can not pass this on to the people that are actually responsible for those reports without constantly fixing data source locations or making sure that the user never moves a file once I fix the source location. Basically it cripples our use of Power BI.

Publishing is not an option because of strict IT policies. I would like to be able to just pass a folder to the user and tell them to just save over the appropriate Excel file with the new data. This way all the data and Power BI files are self contained in one folder.

Boris Lipschitz's profile image Profile Picture

90e27545 255d-4761-8a28-00a168c06ff9 on 06 Jul 2020 00:05:39

RE: Support relative path to excel/csv sources

This is absolutely needed and i believe it is a very core feature indeed. I really felt surprised when i learned Power BI did not support that.

Boris Lipschitz's profile image Profile Picture

d82abc48 833f-4847-af4a-5877f3aee577 on 06 Jul 2020 00:04:41

RE: Support relative path to excel/csv sources

I've been using this feature with Excel/Power query by creating a cell containing the current file location (basic excel formula). By including the file location in my query model, I was able to share the tool with my colleagues. They only had to update the data templates, save everything in one folder and they were able to run the tool without adjusting sources in query editor!

This would be a great feature that would enable us to create scalable visualization tools using only standard data templates. That would be simply AMAZING!

Boris Lipschitz's profile image Profile Picture

369b0ea6 9fe7-4f48-bab9-044fedf58b5e on 06 Jul 2020 00:03:50

RE: Support relative path to excel/csv sources

Hi, I need this feature. It will make my work scalable.

Boris Lipschitz's profile image Profile Picture

8c62d64e 30a1-49c3-a4d7-e9b8dee33a1e on 06 Jul 2020 00:02:53

RE: Support relative path to excel/csv sources

It would be useful if the addition of relative paths also made it easier to switch between data stored locally or in the cloud. Currently different commands are needed for files in the 2 places and the paths also differ because one uses \ and the other /!