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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors