Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

Problem combining all excel files from a folder into one table in Power Query Editor

I have some excel files containing data from different years in one folder. After connecting PowerBI Desktop with the folder and combining them, I could only see data from the 2019 file and not the rest. I've looked through the files and made sure that the column names, column amount, sheet name, and file name formatting are the same, and yet I could never seem to get PowerBI to combine all the files. The only consistency problem I can identify is for the values under the columns. The accounts' naming and months' formatting are different, but I don't see why that would pose a problem, and I wanted to clean that in Power Query Editor anyway. 

1 ACCEPTED SOLUTION
jolind1996
Resolver II
Resolver II

Hi, Smallfires0628

 

Here are some suggestions I would try. You have probably tried a bunch of them already.

 

  1. File Format: Double-check if all your files are in the same format. If one file is .xls and another is .xlsx, this might be causing the issue.

  2. Data Structure: You mentioned that the values under the columns are inconsistent. While this shouldn’t typically be a problem, do ensure that the data types for each column are consistent across all files.

  3. Hidden Rows/Columns: Sometimes, hidden rows or columns in Excel can cause unexpected results in Power Query. It might be worth checking if this is the case in your files.

  4. Corrupted Files: It’s possible that one or more of your Excel files might be corrupted. Try opening each file individually to check for any issues.

  5. Refresh the Query: This might sound simple, but sometimes, refreshing the query in Power Query can solve the issue.

  6. Load Settings: In Power Query, under ‘Close & Load’, ensure ‘Close & Load To…’ is selected and then choose ‘Table’ in the ‘Load To’ dialog box.

  7. Combine Binaries Settings: When combining files from a folder, Power Query provides several options. Make sure you’re using the correct option for your needs.

Best regards,

Johannes

 

View solution in original post

1 REPLY 1
jolind1996
Resolver II
Resolver II

Hi, Smallfires0628

 

Here are some suggestions I would try. You have probably tried a bunch of them already.

 

  1. File Format: Double-check if all your files are in the same format. If one file is .xls and another is .xlsx, this might be causing the issue.

  2. Data Structure: You mentioned that the values under the columns are inconsistent. While this shouldn’t typically be a problem, do ensure that the data types for each column are consistent across all files.

  3. Hidden Rows/Columns: Sometimes, hidden rows or columns in Excel can cause unexpected results in Power Query. It might be worth checking if this is the case in your files.

  4. Corrupted Files: It’s possible that one or more of your Excel files might be corrupted. Try opening each file individually to check for any issues.

  5. Refresh the Query: This might sound simple, but sometimes, refreshing the query in Power Query can solve the issue.

  6. Load Settings: In Power Query, under ‘Close & Load’, ensure ‘Close & Load To…’ is selected and then choose ‘Table’ in the ‘Load To’ dialog box.

  7. Combine Binaries Settings: When combining files from a folder, Power Query provides several options. Make sure you’re using the correct option for your needs.

Best regards,

Johannes

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.