Reply
nadavs
Regular Visitor
Partially syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

@nadavs , refer if this can help

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Super User
Super User

Syndicated - Outbound

@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...
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)