Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

if avec max condition

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

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

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))

View solution in original post

2 Replies
sfatoux72
Partner - Specialist
Partner - Specialist

‌Peut être comme ceci:

if( type='euro' and monthend=max(monthend), interval(datefin-datedebut))

Anonymous
Not applicable
Author

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))