Share via

Power query get latest file

Anonymous
2025-04-02T16:13:38+00:00

Hi

I need help with getting the latest file from a folder to do my transformation on.

has to be dynamic (dates keep on changing)

This is what i get on my fist step ( i need the file that has the latest "date created")

Thanks

Content Name Extension Date accessed Date modified Date created Attributes Folder Path
Binary listings-report-2025-02-09-12220629081.csv .csv 4/2/2025 10:24 2/9/2025 10:21 2/9/2025 10:20 [Record] C:Desktop\INVENTORY-DEC\
Binary listings-report-2025-03-06-12226750762.csv .csv 4/2/2025 10:24 3/6/2025 10:21 3/6/2025 10:21 [Record] C:Desktop\INVENTORY-DEC\
Binary listings-report-2025-03-10-12227518865.csv .csv 4/2/2025 10:24 3/10/2025 10:07 3/10/2025 10:07 [Record] C:Desktop\INVENTORY-DEC\
Binary listings-report-2025-03-28-11218852955.csv .csv 4/2/2025 10:24 3/28/2025 11:59 3/28/2025 11:59 [Record] C:Desktop\INVENTORY-DEC\
Binary listings-report-2025-04-01-12231777715.csv .csv 4/2/2025 10:24 4/1/2025 10:30 4/1/2025 10:30 [Record] C:Desktop\INVENTORY-DEC\
Binary listings-report-2025-04-02-12232002893.csv .csv 4/2/2025 10:26 4/2/2025 10:26 4/2/2025 10:26 [Record] C:Desktop\INVENTORY-DEC\
Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Andreas Killer 144.1K Reputation points Volunteer Moderator
2025-04-02T16:57:00+00:00

Sort by column "Date Modified" ZA so you get the latest file on top.

Then keep the first row of the table only.

Import that data.

Andreas.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful