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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.