Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem comparing dates after Max and Aggr functions

Hi,

i have a big mistake regarding following calculated dimension:

if(date(Aggr($(Max_), PRODUCT_CODE))<$(T2), date(Aggr($(Max_), PRODUCT_CODE),null())

with this Max_ = date(Max({$<RicevConsum.POST_DATE={'<=$(=$(T1))'},RicevConsum.TIPO={CONS,REC}>}RicevConsum.POST_DATE))

This expression works only with <'dd/mm/yyyy' in place of $(T2), i need to filter the aggr results using a date stored in variable, instead of date value ('18/10/2010').

Many thanks at all.



5 Replies
rbecher
MVP
MVP

Hi,

have you tried to quote variable T2?

...< '$(T2)'


- Ralf

Astrato.io Head of R&D
Not applicable
Author

Yes Ralph, i've tried this <'$(T2)' but the filter has no effects, results contains all possible dates.

rbecher
MVP
MVP

Can you post an example app?

- Ralf

Astrato.io Head of R&D
Not applicable
Author

Sorry Ralph, but i can't post data.

rbecher
MVP
MVP

You could load some demo data (inline?)...

- Ralf

Astrato.io Head of R&D