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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Automatically create a query

Hello, I have a particular dilemma and wtih my search so far I have foud it cannot be done. Pls help me out.

 

I have a folder where a new excel file will be uploaded everyday. I have found a solution to picking the latest file in a folder everyday, but no solution as to how to keep the data?

For example, I pick file 1 with 10 rows and append it to my original table (10 rows). Then the next day I want to pick file 2 with 10 rows and append it to my original table (now 20 rows). So now my original table should have 30 rows.

And this process needs to be done every day. 30 rows, then 40, then 50, and so on.

 

Is there any solution to this? I will have to create a new query each day and teach it to pick the latest file..

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

I make a test as below:

 

I have a folder with many excel files, everyday a new file is uploaded into this file.

Let to say, yeaterday i have 1,2,3 excel file.

 

1.Get data ->Folder->enter/browser the folder path(get all files in this folder)->Edit

2.Combine files

1.png2.png

3.png

 

Today, i upload file 4 to this folder, then click on "Refresh All" in Power BI, it will get new data from file 4 into this table

4.png

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

I make a test as below:

 

I have a folder with many excel files, everyday a new file is uploaded into this file.

Let to say, yeaterday i have 1,2,3 excel file.

 

1.Get data ->Folder->enter/browser the folder path(get all files in this folder)->Edit

2.Combine files

1.png2.png

3.png

 

Today, i upload file 4 to this folder, then click on "Refresh All" in Power BI, it will get new data from file 4 into this table

4.png

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you, Maggie. That does solve this particular problem.

 

Once I have uploaded it to the Power Bi online service and scheduled a report refresh, will that "Refresh All" as well?

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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