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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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...

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

@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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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