Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Guys,
i am very new in QlikCloud and need your help:
I have the following table:
22.04.2023 15:20
28.05.2023 16:20
10.06.2023 14:20
I want to get the second oldest date for each ID. Old in this context means that the date is more in the past. I don't want to get the oldest date, which is easily extracted be min function and group by.
The result should be the folllowing:
What it the corresponding Code for this Problem?
Thanks a lot for your help!
Hi, Do this.
Temp:LOAD ID, Timestamp(Timestamp#(Date, 'DD.MM.YYYY hh:mm), 'DD.MM.YYYY hh:mm) as DateFROM <Source Table> ;
NoConcatenateFinal:LOAD ID,FirstSortedValue(Date, Date, 2) as Date
Resident TableGroup By ID;
DROP Table Temp;
EXIT SCRIPT;