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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
43918084
Creator II
Creator II

Max(Date) returns invalid expression

I have a table with field

  Date(Date#("ACCTG DATE (P0045)",'yyyyMMdd'),'YYYYMMDD') as "ACCTG DATE (P0045)"

 and I want to have a field to return latest date.

I used Max("ACCTG DATE (P0045)") and get invalid expression

Hope I can get some guidance

 

 

13 Replies
43918084
Creator II
Creator II
Author

Thank you very much for your immediate help.

I have changed the script to Date#("ACCTG DATE (P0045)",'YYYYMMDD') as "ACCTG DATE (P0045)"

But when I apply max([ACCTG DATE (P0045]) I still have invalid expression unfortunately

lorenzoconforti
Specialist II
Specialist II

In which chart object are you getting  invalid expression? Can you share a screenshot?

Mauritz_SA
Partner - Specialist
Partner - Specialist

Hi @43918084 

You need another bracket max([ACCTG DATE (P0045)]).

If this doesn't work then please send a screenshot as @lorenzoconforti mentioned.

Regards,

Mauritz

43918084
Creator II
Creator II
Author

Thank you very much Mr Agigliotti for your patience to help me many times.

I finally did an extra load and get the problem solved

 

left join
Load Max("ACCTG DATE (P0045)") as maxd
resident [LYCM];