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
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
Super User
Super User

  • 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
Super User
Super User

  • 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.