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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Max date problem

Hi All,

I have a date timestamp field, called "Creation Timestamp.History" , which I'd like to get the Max per Order Number.

I've used the expression : max([Creation Timestamp.History]), BUT it returns no values.

It should return : 03/08/2012 12:46:31 , in my attached example.

I'm not sure if it's just an issue with Timestamps, but I'm definitely doing something wrong?

Any tips?

Cheers!

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

    Please use the below Expression in the Chart .

max(Timestamp( Timestamp#([Creation Timestamp.History] , 'DD/MM/YYYY hh:mm:ss' ) ,'DD/MM/YYYY hh:mm:ss'  ))

Regards

Yusuf

View solution in original post

4 Replies
Not applicable
Author

Creation Timestamp.History is not in date format, its in character format

first create the date by using left, right and makedate function.... then it will work

Not applicable
Author

Hi,

    Please use the below Expression in the Chart .

max(Timestamp( Timestamp#([Creation Timestamp.History] , 'DD/MM/YYYY hh:mm:ss' ) ,'DD/MM/YYYY hh:mm:ss'  ))

Regards

Yusuf

Not applicable
Author

try this

max(date([Creation Timestamp.History],'DD/MM/YYYY hh:mm:ss'))

Not applicable
Author

Thank you all for your feedback