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: 
Not applicable

Max Date function not working

Hi Qlikview Community,

Could you please assist me in why this expression isn't working. The format of the DaysFilled.DateOriginal is yyyy-mm-dd 00:00:00.

sum({<DaysFilled.DateOriginal={"$(=max(DaysFilled.DateOriginal))"}>}DaysFilled.Days)

Thank you in advance,

OnePuttGirl

Hello,

I have tried everything that has been given. I thought I would include the .qvw and see if anyone can figure it out. The dates seem to be in the correct format. The object is Days Filled Detail and it is the only expression. Please help me it is really important that I get this done immediately.

Thank you,

Oneputtgirl

7 Replies
MayilVahanan

HI

Try like this

sum({<DaysFilled.DateOriginal={"$(=Date(max(DaysFilled.DateOriginal),'yyyy-mm-dd hh:mm:ss'))"}>}DaysFilled.Days)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

I don't get anything with that expression. Any other ideas?

Not applicable
Author

I have even built a table box and got 'yyyy-mm-dd hh:mm:ss' format of DaysFilled.DateOriginal.

Not applicable
Author

Hi,

You can try this expression.

sum({<DaysFilled.DateOriginal={"$(=max(Date(Date#(DaysFilled.DateOriginal, 'yyyy-mm-dd hh:mm:ss')))"}>}DaysFilled.Days)

Regards,

Janzen

Not applicable
Author

Hi,

I attached a .qvw file to the original post can someone take a look at it and see if they can tell me whats going on. I can't see to get it to work and everything points to it should work.

Thank you,

Oneputtgirl

MayilVahanan

Hi

Please check the attached file

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
whiteline
Master II
Master II

Hi.

You can also use this one:

=sum({<DaysFilled.DateOriginal={"=DaysFilled.DateOriginal=max(DaysFilled.DateOriginal)"}>}DaysFilled.Days)