Forum Discussion
ashako88
4 years agoFrequent Visitor
How to grab the latest two files from folder using m code?
I need to grab the latest two files. The files are dumped by an ERP process and the drop is at time 30 minutes apart.
What should the formula be to grab both latest files? I cannot use today as a filter because the file typically drops in the evening (and the report runs the following morning) but in rare cases, it is dropped the next day (screenshot 1). Therefore, I need to grab the latest 2 files.
Thanks!
Sort by Date Modified and then use Keep Rows > Keep Top Rows > 2 rows.
1 Reply
- AlexisOlsonSuper User
Sort by Date Modified and then use Keep Rows > Keep Top Rows > 2 rows.