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
jozsacruz
Frequent Visitor

Sharepoint Folder

Hello, 

 

Just wanted to ask how I can merge excel files in power query. I have connected to my sharepoint folder and will be adding excel files weekly. These files remain relatively similar but sometimes may change from time to time. The only change is new columns will be added. 

 

Do I have to enter power query editor to add in the new excel file and append each time a new file is added or is there a way to automate it? Thank you! 

1 ACCEPTED SOLUTION
edhans
Community Champion
Community Champion

  • Use the SharePoint Folder Connector
  • Filter to the files you want to use. You can do this in the Path column, or the file name, or however you want.
  • After you have the files showing you want, click the Combine icon.
    • edhans_0-1613154931126.png

       

Thereafter, all files meeting that same filter critera will be added to the query.

You say the files will remain "relatively similar." They are either the same or they are not. If they are not, the query can fail unless you had some more sophisticated M code to handle those differences, including the addition or removal of columns from the first file in that folder. The query will use that file as a model for the rest and it expects them to be the same format. Row count doesn't matter. Column count, names, etc. does matter.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Community Champion
Community Champion

  • Use the SharePoint Folder Connector
  • Filter to the files you want to use. You can do this in the Path column, or the file name, or however you want.
  • After you have the files showing you want, click the Combine icon.
    • edhans_0-1613154931126.png

       

Thereafter, all files meeting that same filter critera will be added to the query.

You say the files will remain "relatively similar." They are either the same or they are not. If they are not, the query can fail unless you had some more sophisticated M code to handle those differences, including the addition or removal of columns from the first file in that folder. The query will use that file as a model for the rest and it expects them to be the same format. Row count doesn't matter. Column count, names, etc. does matter.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.