Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
All:
Have a data source that is a daily feed of an XLSX whereby the filename is listed with an epoch suffix. I need to somehow load on a daily basis the file with the max of the epoch timestamp. Can't rely on a date stamp because sometimes the files are delayed and come over as a day late.
Figure if I can get to a max of the epoch time, and load ONLY the file that corresponds to that value, then that should resolve any issues with delayed reporting or having to manually change the filename daily.
Filename examples:
Service_Issue_Calls-Past7days_1528023666940 <--(most current file, the only one I want to load "today")
Service_Issue_Calls-Past7days_1527967390521
Service_Issue_Calls-Past7days_1527967370343
Service_Issue_Calls-Past7days_1527764450215
and so on...
I know I need to create a pathway variable and a filename variable, combined into the LOAD string somewhere, but SUPER new to QV still, and while I've read as many samples online as I can, still struggling. Any suggestions?
Thanks,
Jonathan
My mistake, i think you need
Let vMax = RangeMax(vMax, num(Right(subField(vFile, '.', 1), 13)));
Jonathan - fantastic! Works like a CHAMP!