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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

@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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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