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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression in syntax

Hello,

I am using this expression Date={"=Max(LoginDate)"} and its not working...

Can anybody help to make it correct??

11 Replies
its_anandrjs
Champion III
Champion III

Try to use like

Date ={'$(=Max(LoginDate))'}

Or

Date ={"$(=Max(LoginDate))"}

Eg:-

Sum({<Date ={'$(=Max(LoginDate))'}>} ConstrumValue)

CELAMBARASAN
Partner - Champion
Partner - Champion

Try this

Date={'$(=Date(Max(LoginDate)))'}

Your expression will be kind of below

Sum({<Date={'$(=Date(Max(LoginDate)))'}>} Sales)

Not applicable
Author

Anand,

not working....

Not applicable
Author

not working adhimulam

Not applicable
Author

hey navneet this expression wont work as u r comparing date with max of date and in the seletction you will have year and month

so rather you should write expression as following

Sum({<Year={"$(=max(Date_Year))"},Month={"$(=max(Date_Month))"}>}sales)

try like this

anbu1984
Master III
Master III

can you show your app?

CELAMBARASAN
Partner - Champion
Partner - Champion

Is your Date field has the same format which is specified in DateFormat variable?

its_anandrjs
Champion III
Champion III

Check the date format for fields  Date  and  LoginDate    that should be same in format.

its_anandrjs
Champion III
Champion III

See the below example for the same problem

LOAD Date(TranDate,'MM/DD/YYYY') AS TranDate,Sales;

LOAD * Inline

[

TranDate,Sales

1/1/2014,3343

1/2/2014,454

1/3/2014,65

1/4/2014,64767

1/5/2014,7676

1/6/2014,7767

1/7/2014,7676

1/8/2014,7676

1/9/2014,767434

1/10/2014,767

];

Dimension:- TranDate

Expression:- Sum({<TranDate ={'$(=Max(TranDate))'}>} Sales)

The result will be  767 for max date 1/10/2014