Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
07mishin
Contributor II
Contributor II

Timestamp

Good day.
I have some "date" in format "2021-06-18T17:05:29.636+03:00"
I need max date, but when I used function, I have 2 instead 1 rows of 8.

First:
Date(Timestamp(Timestamp#(entityJson.publishDate),'YYYY-MM-DDhh:mm:ss.sss±hh:mm'),'DD.MM.YYYY hh:mm:ss') as "Date"

Second:
max("Date") as max_date

As a result, 2 rows remain:

max_date
44391.629151725
44391.632984977


##timestam

Labels (1)
2 Replies
Taoufiq_Zarra

@07mishin 

Floor it

max(floor(Date)) instead of max(Date)

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
07mishin
Contributor II
Contributor II
Author

Thanks, but "floorrounds down.
And will not always considered be the correct value the maximum.