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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.