Discussion Board for collaboration on QlikView Scripting.
Solved! Go to Solution.
This brings up the timestamp 10:33 or 10:30 depending on the the sort order. This is because it is always looking for the first match and ignores the rest of the matches.
It could work if it was possible get QV to apply the function after each row is loaded instead of over the whole table. Is this possible?
With lookup in load script you can experiment by yourself, here is example how to get max timestamp with max statement (MAX_TIME column):
LOAD * INLINE [
LOAD URL1 as URL, Timestamp(TimeStamp1, 'hh:mm') as TimeStamp Resident VALUES1 order by URL1, TimeStamp1 DESC;
drop Table VALUES1;
inner join (VALUES)
load URL, Timestamp(Max(TimeStamp), 'hh:mm') as MAX_TIME Resident VALUES Group By URL;
Many thanks for your help guys, but not quite what i need. I need to reference the last timeStamp previous that a URL was accessed
|ID||URL||TimeStamp||referenced TimeStamp (calculated Column)|
|10:30 (from row 1) the most recent previous time facebook was accessed|
10:35 (From row 2) the most recent previous time google was accessed
10.36 (from row 3) the most recent previous time google was accessed
A lookup would work if i could change the Lookup to search up from the current record, instead of down from the top of the table
I dont know if this is possible or not, so please let me know if you think it may not be .