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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register 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
Partner - Master III
Partner - Master III

Hi,

have you tried to quote variable T2?

...< '$(T2)'


- Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
Not applicable
Author

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

rbecher
Partner - Master III
Partner - Master III

Can you post an example app?

- Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
Not applicable
Author

Sorry Ralph, but i can't post data.

rbecher
Partner - Master III
Partner - Master III

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

- Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine