Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

max date issue

Hi,

I am trying to get max datetime value form QVD.

But it is giving blank in text object. In database the value is like below. Can anyone suggest on this issue

In qlikview

Regards,

Kumar

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I got  solution using below expresssion.

=purgechar(max(timestamp(timestamp#(Record_Updated_Datetime,'DD/MM/YYYY hh:mm:ss'))),'AMP')

View solution in original post

9 Replies
Chanty4u
MVP
MVP

try this

Timestamp(max(DateField),'YYYY-MM-DD hh:mm:ss')

Chanty4u
MVP
MVP

i think your date field coming as text.

add your date field in listbox and send screen shot.

Anonymous
Not applicable
Author

Thanks for your reply. I tried with that formula but it is not working.

Regards,

Kumar

Chanty4u
MVP
MVP

it is coming as text .  thats why it  is showing " -"

Anonymous
Not applicable
Author

I tried with below value

=max(timestamp(timestamp#(Record_Updated_Datetime,'DD/MM/YYYY hh:mm:ss'))).

But it is giving me PM at end of the value like . I want to exclude PM in that result

Anonymous
Not applicable
Author

I don't understand how are you saying that it is text value. Can you tell me.

Chanty4u
MVP
MVP

try this

=max(timestamp(Record_Updated_Datetime,'DD/MM/YYYY hh:mm:ss'))

Anonymous
Not applicable
Author

I tried with that already.

Anonymous
Not applicable
Author

I got  solution using below expresssion.

=purgechar(max(timestamp(timestamp#(Record_Updated_Datetime,'DD/MM/YYYY hh:mm:ss'))),'AMP')