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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
MrToast20
Frequent Visitor

Get data from multiple excel files with multiple sheets

Hi there,

 

Fairly new to PowerBI and looking for some help.

 

I have around 60 excel files structured as follows:

 

Filename: Apr 20 Sheets: 2017, 2018, 2019, 2020

Filename: Apr 19 Sheets: 2017, 2018, 2019

Filename: Apr 18 Sheets: 2017, 2018

Filename: Apr 17 Sheets: 2017

 

These are point in time files.  So the "Apr 17" file incudes all data for the 2017 year asat 30/04/17.  The "Apr 19" file also contains data relating to the 2017 year, but is asat 30/04/19

 

Here's what i need to do;

  1. Combine all files and sheets into a single table. 
  2. I want to add a new column called year, this should take the sheetname as the year and populate that value for each record.
  3. I want to add a new column called Date_Loaded which sets the value to be the last day of the month, it should take the year in the filename.  E.g 30/04/17 for the "Apr 17" file, 30/04/18 for the "Apr 18" file etc
  4. When a new file is dropped into the folder, it should repeat the steps above, combining the data and adding the custom columns.

Help would be much appreciated.

 

Thanks

 

 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @MrToast20 

All of this is possible using Power Query, please refer to this article to give you an example of how to do it

https://www.myonlinetraininghub.com/import-multiple-files-containing-multiple-sheets-with-power-quer...

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @MrToast20 

All of this is possible using Power Query, please refer to this article to give you an example of how to do it

https://www.myonlinetraininghub.com/import-multiple-files-containing-multiple-sheets-with-power-quer...

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.