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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
asknyldz
Contributor III
Contributor III

Max Date into the Expression

Hi,

I found max date in my data with this expression,

=max({<TYPE={'MACTUAL'}>}[MONTH])

The result is,

01/03/2016

Thats ok, but i want to set this formula in this expression, i don't want to write manually the date.

(sum({<TYPE={'ACTUAL'},BUSINESS={'NEW','EXPANDED'}*P([BUSINESS]),MONTH={'<=01/03/2016'}*P(MONTH)>-<CLIENT={'NEW CLIENTS','EXPANDED CLIENTS','FORECAST ADJUSTMENT'}>}AMOUNT))/1000

Regards,

Labels (1)
1 Reply
sunny_talwar
MVP
MVP

May be this:

(sum({<TYPE={'ACTUAL'},BUSINESS={'NEW','EXPANDED'}*P([BUSINESS]),MONTH={"<=$(=Max({<TYPE={'MACTUAL'}>}[MONTH]))"}*P(MONTH)>-<CLIENT={'NEW CLIENTS','EXPANDED CLIENTS','FORECAST ADJUSTMENT'}>}AMOUNT))/1000