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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

problem with timestamp to get max value

Hi,

I have timestamp column and trying to get max value from this function. But it is displaying null value

=MaxString(Date(Floor(Timestamp#(account_created_datetime)),'DD/MM/YYYY')).


Plese help me on this



Regards,

Kumar

11 Replies
Not applicable
Author

Max(Date(Floor(Timestamp#(account_created_datetime, 'TimeStampFieldFormatHere')),'DD/MM/YYYY'))

sunny_talwar

Because your date is 11/06/2015 09:40:56.000000

those extra 0s at the end either needs to be removed using SubField() function (SubField(FieldName, '.', 1) means take everything before the dot)

or you can use what Stefan prescribed:

Max(Date(Floor(Timestamp#(account_created_datetime,'DD/MM/YYYY hh:mm:ss.fff')),'DD/MM/YYYY'))

here the extra 0s are taken care by .fff