Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Finding oldest date in script

Hi,

I have three different fields I have loaded in the script, with each field containing only one date:

Dates:

     Date1,

     Date2,

     Date3

How can I find the the oldest of these dates in the script?

1 Reply
giakoum
Partner - Master II
Partner - Master II

concatenate the 3 fields into one table and field and then :

[test]:

LOAD * INLINE [

    F1

    2012/05/20

          2012/05/10

          2012/05/05

];

[test1]:

first 1 LOAD

          F1 as F2

Resident [test]

Order By F1 asc;

F2 is your answer