Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
Leverage your QlikView investment to modernize BI – see how! Join Group
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted

Re: set analysis problem with funtion

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.

Highlighted

Re: set analysis problem with funtion

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

Highlighted

Re: set analysis problem with funtion

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

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