Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
komminenianusha
Partner - Contributor III
Partner - Contributor III

Not able to get Min and Max values of a Date field

Hi All,

I am new to qliksense. I am working on QV to QS migration.

in QV scripting they created one date field using SQL like below

TO_CHAR(TO_DATE('01011970','ddmmyyyy') + 1/24/60/60 * TIMESTART,'DD/MM/YYYY')  as "TIMESTART_SESSION",

Same code I am using in QS also but while trying to fetch 'min' and 'max' value of that field by using Min and Max functions I am not getting any values. The field is empty  if I apply 'num' function also.

Can any one please help me to find out the route cause for this issue. Why I am not getting values ?

Thanks in advance.

Regards,

Anusha

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

=Date(Max(Date#(DateField, 'DD/MM/YYYY')),'DD/MM/YYYY')

View solution in original post

4 Replies
tresesco
MVP
MVP

When you load the same in qlik, how does (date format) it look at the UI?
komminenianusha
Partner - Contributor III
Partner - Contributor III
Author

Date format like 'DD/MM/YYYY'

tresesco
MVP
MVP

Try like:

=Date(Max(Date#(DateField, 'DD/MM/YYYY')),'DD/MM/YYYY')
komminenianusha
Partner - Contributor III
Partner - Contributor III
Author

It works fine. Thank you very much Tresesco.