You need to sign in to do that
Don't have an account?
Markus Schormann
Validation Rule Adding Percent Field Values
Dear all,
I have 3 custom percent fields and want to create a validation rule with these conditions:
Kindly advise
Thanks and best
Markus
I have 3 custom percent fields and want to create a validation rule with these conditions:
- either Field 1 = 100%
- or Field 1 + 2 = 100%
- or Field 1 + 2 + 3 = 100%
OR(Field1__c <>1, Field1__c + Field2__c <> 1, Field1__c + Field2__c + Field3__c <> 1)
Kindly advise
Thanks and best
Markus
Can you try the below.
Replace Percentage3__c with field3, Percentage2__c with field2, Percentage1__c with field1
If this solution helps, Please mark it as best answer.
Thanks,
All Answers
I hope you should be using AND condition as it is negative scenerio. Can you try the below rule.
If this solution helps, Please mark it as best answer.
Thanks,
thank you for your reply. Unfortunately this change wasn't the solution, now the Validation rule isn't firing at all.
I have tested using the above formula and it is working. I have given 20,30,20 in the three field and so the validation rule got fired. Can you specify what values you have given.
Thanks,
Oddly this fires when Field1__c + Field2__c + Field3__c <> 1 but not when Field1__c + Field2__c <> 1 OR Field1__c <>1
Can you try the below.
Replace Percentage3__c with field3, Percentage2__c with field2, Percentage1__c with field1
If this solution helps, Please mark it as best answer.
Thanks,