Forum Discussion
Power Query - Combine Data from Folder with Relative Paths
- Oct 26, 2017
Hi Justin,
Bit more in addition. Combine (clicking on Content column with binaries) doesn't work with file path defined as variable, it shall be the text. The approach is in link what Yury gave and more illustrative here http://www.howtoexcel.org/power-query/how-to-import-all-files-in-a-folder-with-power-query (mainly second part of the post).
In brief, idea is to create the function which returns the table or the sheet (as you define the item to return) where the parameters for that function are file name and it's path. Instead of Combine you add custom column to your table with binaries into which that function returns tables from each file (taken file name/path as parameters from each row). After that expand that custom column and you are here.
Hi Justin,
please have a look at the following blog, which may be helpful
https://www.excelguru.ca/blog/2015/02/25/combine-multiple-excel-workbooks-in-power-query/
Later versions of Power Query automatically create a function to combine files excel files from folder.
Yury