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
Ram_DCT
Helper II
Helper II

Append Different Excel files Automatically into a Single Table

Hi All, 

 

I have two excel files [one sheet in each] with same number of columns in each file in a folder. I want to combine these files into one master file by appending these files one after another dynamically - as every month there will a new file with same number of columns coming into the same folder.

 

My query should read the new file for the new month and append data into the master file I have created. For example, below is the data from two excel spreadsheets and need to be combined into one table AND whenever a new month's file is there in the folder, the file should be appneded in to the master file automatically whenever my scheduled refresh happens.

 

I have tried this using Folder->Transform Load->Binary->Select First File-> but getting an error that, "Key did not match". Please help team. I have attached the error screenshot.Transform_Error.JPG

 

 

May'20 Table    
NameMarksClassRankSex
XYZ90X2M
PQR89X4F
LMN87X5F
ABC95X1M
     
     
Jul'20 Table    
NameMarksClassRankSex
XYZ78XI3M
PQR98XI1F
LMN67XI4F
ABC81XI2M
3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @Ram_DCT ,

 

You could refer to this resolved case which is similar to yours.

https://community.powerbi.com/t5/Desktop/An-error-occurred-in-the-Transform-File-query-Expression-Er...

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
lbendlin
Super User
Super User

where is that "master file" ?  Power BI cannot write back into Excel workbooks directly.

Master file is nothing but a consolidated file where I am going to append all the files into one.

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.

Top Solution Authors