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)
RE: Support relative path to excel/csv sources
Need this for CSV/TSV/PSV flat files also.
RE: Support relative path to excel/csv sources
Pesky analysts asking for complicated features like relative paths. Microsoft developers can't cater to every niche edge cases!
RE: Support relative path to excel/csv sources
hmm, was really surprised it is not supported yet
RE: Support relative path to excel/csv sources
Please add relative path capabilities!As sugestion: “/” - returns to the root directory and starts there “../” - moves one directory backwards and starts there “../../” - moves two directories backwards and starts there (and so on…)To move forward, just start with the first subdirectory and keep moving forward
RE: Support relative path to excel/csv sources
This is feature I could REALLY use. Another option, would be relative paths, or the ability to use standard windows environment variables that have been around for a VERY long time. (Honestly, this is one I seriously don't understand why it is not available). Then, I could have users store their excel files in their %userprofile% .
RE: Support relative path to excel/csv sources
This is a must have feature, now that you allowed having scheduled refresh on Excel file on One Drive.
RE: Support relative path to excel/csv sources
Desperately needed!!
RE: Support relative path to excel/csv sources
I can't believe this is not implemented yet!
RE: Support relative path to excel/csv sources
Power BI Desktop should have a Power Query keyword (like #shared), called something like #workingdirectory, which returns the current report file's working directory as an absolute path. That way, you wouldn't even need to use the report parameters at all. You'd just edit the Source line in the M query to look like this:
Source = Excel.Workbook(File.Contents(#workingdirectory & "ExcelFile.xlsx"), null, true)
Then, as long as the report PBIX and its data source files are kept together, and the source file names stay the same, the report will just work automatically, no matter who opens it or where it's saved in the filesystem. 😎thum
RE: Support relative path to excel/csv sources
How come this is a not feature... This should've been implemented years ago.