Forum Discussion

Justin Schmidt's avatar
Justin Schmidt
Copper Contributor
Oct 24, 2017
Solved

Power Query - Combine Data from Folder with Relative Paths

I have a folder (called Excel Exports) with a varying number of files within it, all the same format. This folder is distributed to many people, all residing on an unknown location on their local mac...
  • SergeiBaklan's avatar
    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.

     

Resources