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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Automatically load every file in a folder and perform the same operation to each of them

Hi everybody,

 

I'm trying to load everyfile in a folder an execute the same actions to everyone once they are in the same query.

 

Let me explain myself:

 

1) I have this files in one folder:

          File_20200601.xlsx

          File_20200602.xlsx

          File_20200603.xlsx

          ....

         One for each day and I extract a new one every day.

2) For each file, I need to add a column with the date in the file name File_yyyymmdd.xlsx

3) Then, add all of them to the same query.

 

Is it possible to do that?

 

Thanks a lot!

 

Jorge

1 ACCEPTED SOLUTION
collinq
Super User
Super User

HI @Anonymous ,

 

If you use the FOLDER as the data source then the system automatically combines all of the files.  AND, the system will automatically add a "Source Name" column that will indicate which file that set of rows comes from.  Then, when you add the new files the next day, they will automatically all keep appending.  

 

I would appreciate Kudos if my response was helpful. I would also appreciate it if you would Mark this As a Solution if it solved the problem. Thanks!



Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




View solution in original post

1 REPLY 1
collinq
Super User
Super User

HI @Anonymous ,

 

If you use the FOLDER as the data source then the system automatically combines all of the files.  AND, the system will automatically add a "Source Name" column that will indicate which file that set of rows comes from.  Then, when you add the new files the next day, they will automatically all keep appending.  

 

I would appreciate Kudos if my response was helpful. I would also appreciate it if you would Mark this As a Solution if it solved the problem. Thanks!



Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors