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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
souadouert
Specialist
Specialist

set analysis problem with funtion

=SUM({< PROJET_AVENIR_DATE_PRODUCTION={ "$(DATE_EXTRACTION) >= DATE(date(_DATE_OUVERTURE),'YYYYMMDD')"}>}MONTANT_PRODUCTION)


Ihave probleme with this expression


when i tested $(DATE_EXTRACTION) >= DATE(date(_DATE_OUVERTURE),'YYYYMMDD') in selection object , it works but when i integrted this expression with this set analysis expression  didnt work

3 Replies
alexandros17
Partner - Champion III
Partner - Champion III

The expression cannot work in set analysis because "_DATE_OUVERTURE" is a field, not a variable.

The right side of a set analysis expression must have fixed values as variables or aggregated values such Max(_DATE_OUVERTURE) for instance.

hic
Former Employee
Former Employee

You could probably use


=SUM({<_DATE_OUVERTURE={"<$(DATE_EXTRACTION)"}>} MONTANT_PRODUCTION)


instead. Just make sure that _DATE_OUVERTURE is interpreted correctly in the script, and that it has the same format as the variable DATE_EXTRACTION.


HIC

sunny_talwar

May be you need an equal sign for the search string?

=Sum({<PROJET_AVENIR_DATE_PRODUCTION = { "=$(DATE_EXTRACTION) >= _DATE_OUVERTURE"}>} MONTANT_PRODUCTION)