Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have a problem with the formula below :
I wanted to filter the results on the year only
=sum(if([Opportunite.Statut_Commercial]='En cours',[Opportunite.Date_de_Commande]<yearend((31/12/2022)),[Opportunite.Montant_offre_finale]))
Many thanks for your help
=sum({<[Opportunite.Statut_Commercial]={'En cours'},[Opportunite.Date_de_Commande]={"<=$(=date(yearend(31/12/2022)))"}>},[Opportunite.Montant_offre_finale])
Hello,
Thnak you for your proposal.
Unfortunately, i have a mistake as shown below on the screeshot
One "=" is missing.
{"<=$(=date(yearend(31/12/2022)))"}
A bracket is still missing. I don't understand
Remove the comma behind the set analysis
Thank you for your correction.
I don't understand because, the date calculated is 1899 instead of 2022 as i wrote
The date must be between apostrophs ('31/12/2022') and the date format have to be the same as specified in the SET DateFormat statement at the top of your load script.
I have no result even if the formula seems to be correct :
I modified the formula as below :
=sum({<[Opportunite.Date_de_Commande]=yearend({"=$(=Date(Today(), 'DD/MM/YYYY'))"}),[Opportunite.Statut_Commercial]={"En Cours"}>}[Opportunite.Montant_offre_finale])
I have an error :