
Power Query analyzes an example file, by default the first file in the list, to use the correct connector and identify matching columns. To combine the files into single table, select the Content column that contains each Binary (usually the first column), and then select Home > Combine Files. To select the files you want, filter columns, such as Extension or Folder Path. The Power Query Editor opens and displays all the files in the folder and any subfolders. Verify that all the files you want are listed. Locate the folder containing the files you want to combine, and then select Open.Ī list of all the files in the folder and subfolders appears in the dialog box. Select Data > Get Data > From File > From Folder. This can improve performance and help simplify your transformations.

Let’s say the source folder has a mixture of file types and subfolders, and you want to target specific files with the same file type and schema but not others. The query steps and columns created depend on which command you choose. For more information, see the section, About all those queries.įor more flexibility, you can explicitly combine files in the Power Query Editor by using the Combine Files command. Power Query automatically creates a query to consolidate the data from each file into a worksheet. Select or clear the Skip files with errors checkbox at the bottom of the dialog box. If you have many objects, use the Search box to locate an object or the Display Options along with the Refresh button to filter the list. You can either not select an object or select just one object. In the Sample File box, select a file to use as sample data used to create the queries. An Access database can have multiple tables and queries. An Excel workbook can have multiple worksheets, Excel tables, or named ranges. The query steps and columns created depend on which command you choose. For more information, see the section, About all those queries.Įach of these data sources can have more than one object to import. Power Query automatically creates queries to consolidate the data from each file into a worksheet. Select all the columns that contain data values. Select Home, the arrow next to Remove Columns, and then select Remove Other Columns. You may want to clear the Use original column name as a prefix check box. The Value column is now a structured Record column. Select the Expand icon. Select the Expand icon, and then select Expand to New rows. The Value column is a structured List column. There are additional commands discussed in the section About all those commands. Select one of the commands at the bottom of the dialog box, for example Combine > Combine & Transform. Select Data > Get Data > From File > From Folder. For more information, see the section, About all those queries. The query steps and columns created depend on which command you choose. You can also select or clear the Skip files with errors checkbox at the bottom of the dialog box. To change file settings, select each file from the Sample File box, set the File Origin, Delimiter, and Data Type Detection as desired.

If you select any Combine command, The Combine Files dialog box appears.

Select one of the commands at the bottom of the dialog box, for example Combine > Combine & Load. Locate the folder containing the files you want to combine.Ī list of the files in the folder appears in the dialog box. Verify that all the files you want are listed. Each of these files follow a simple pattern, only one table of data in each file.
