I need help writing out a Validation Rule for our 'ACV' custom field based on the 'Number of Months' custom field on the Opportunity records.
So currently my ACV equation is
ACV = Amount * (Number of Months / 12)
And that works out great. However, if the 'Number of Months' is less than 12, then I need the ACV to equal the Amount.
Thanks!
4 risposte
Eric Praud (Activ8 Solar Energies) Forum Ambassador
Actually, are you looking for a validation rule, or is it a formula field that needs to calculate ACV = Amount * (Number of Months / 12) except if the number of months is less than 12, in which case it shoudl be ACV = Amount?
If the latter, then try this:
IF(Number_of_Months__c<12, Amount, Amount * Number_of_Months__c / 12)