Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
=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
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.
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
May be you need an equal sign for the search string?
=Sum({<PROJET_AVENIR_DATE_PRODUCTION = { "=$(DATE_EXTRACTION) >= _DATE_OUVERTURE"}>} MONTANT_PRODUCTION)