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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
tjordaske
New Member

apply automatically query steps on new files

I'm using software that creates each week a report and places this report always in the same folder but with the date added to the filename.

This report is fixed and cannot be changed by default so I need to do some additional steps in Power BI to remove some rows, change some data types, ....

 

So my questions are:

- How can I select a folder and add all the files in this folder as separated tables into Power BI, and that new files are automatically added when I push 'refresh'?

- How to add automatically all applied steps I did on one file to all the other files, and automatically also to the new files that are added each week?

1 ACCEPTED SOLUTION
erik_tarnvik
Solution Specialist
Solution Specialist

Are the files all in the same format, for example csv (comma separated values)?

Is it important that each file ends up in a separate table?

 

You can use Get Data - Other - Folder to ask Power Query to grab all files in a specified folder. On each refresh, all data in that folder will be read so when new files are added, they will be read into the model upon refresh. You can also use all methods available in Power Query to shape the data as you see fit. All input will however end up in one table, but with a column containing the file name so it should be a simple matter to extract the date from the file name in that column in order to allow processing of date separated data.

 

Hope this helps! 

View solution in original post

2 REPLIES 2
erik_tarnvik
Solution Specialist
Solution Specialist

Are the files all in the same format, for example csv (comma separated values)?

Is it important that each file ends up in a separate table?

 

You can use Get Data - Other - Folder to ask Power Query to grab all files in a specified folder. On each refresh, all data in that folder will be read so when new files are added, they will be read into the model upon refresh. You can also use all methods available in Power Query to shape the data as you see fit. All input will however end up in one table, but with a column containing the file name so it should be a simple matter to extract the date from the file name in that column in order to allow processing of date separated data.

 

Hope this helps! 

Hi, very useful. Supplementary question: does this work as an update to the main table or a refresh? i.e. if an old file is not deleted, is there a risk of duplication or is the table simply overwritten?

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors