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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
nadavs
Regular Visitor

Merge tables only from last files created each day

Hi,

I have thousands of files generated multiple times everyday, such that each file is named "date Version #" .

How can I merge all tables only from last version files generated every day?

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @nadavs 

 

I'd like to suggest you use folder connector to combine the tables in each file. Please make sure all tables have the same columns and table name. For example, all tables in the file in the folder have the same name 'Table' and same columns 'Name', "Age", "Salary".

a1.png

 

a2.png

 

When i put a new excel file in the folder and click 'Refresh', it combines the tables in the file automatically. For example, I added a excel file named 'test2' with a table named 'Table' which has same columns with others.

a3.png

 

For further infornmation, you may refer to the document .

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@nadavs , refer if this can help

https://medium.com/@wkrzywiec/getting-data-from-the-latest-file-in-a-folder-using-power-query-51dfa4...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Greg_Deckler
Super User
Super User

@nadavs - Start with a Folder query. Edit the query that lists the files and split the file name. Group By Date and get maximum value of version. Then recombine the separate filename columns back. The rest of the queries should proceed as normal.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

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

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors