Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Bonjour,
Je suis actuellement sur un calcul avec condition if sur le dernier mois d'enrégistrement, ma formule me retourne aucune réponse. je cherche à mettre max(dateend):
voice ma formule:
if( type='euro' and max(monthend), interval(datefin-datedebut))
comment lui dire de me prendre le dernier mois?
quelqu'un peut me donner la bonne syntaxe?
Merci
Bonjour Sébastien,
Merci pour ton aide, cela ne fonctionne pas. La solution est de faire un sum dans l'interval:
Interval(
sum({<monthend={'$(=max({<typ={'euro'}>}monthend))'},type={'euro'}>} distinct datefin)
-
sum({<monthend={'$(=max({<typ={'euro'}>}monthend))'},type={'euro'}>} distinct datedebut))
Peut être comme ceci:
if( type='euro' and monthend=max(monthend), interval(datefin-datedebut))
Bonjour Sébastien,
Merci pour ton aide, cela ne fonctionne pas. La solution est de faire un sum dans l'interval:
Interval(
sum({<monthend={'$(=max({<typ={'euro'}>}monthend))'},type={'euro'}>} distinct datefin)
-
sum({<monthend={'$(=max({<typ={'euro'}>}monthend))'},type={'euro'}>} distinct datedebut))