You need to sign in to do that
Don't have an account?
I want to create a formula field to return a calculated value based on a pick list and a checkbox field
What I need is if the payment request picklist value is "Full" and The Spin Kicker Checkbox is checked then the Spin Amount should return the value * 1.5
Else if the checkbox is not checked then it should return the value based of the Payment Request picklist value
My formula is as follows:
IF(
ISPICKVAL(Payment_Request__c,"Full"),
AND(SPIN_Kicker__c= True))
VALUE(TEXT(SPIN_Amount__c)*1.5),
IF(ISPICKVAL(Payment_Request__c,"1st Half"),
VALUE(TEXT(SPIN_Amount__c))*0.5,
IF(ISPICKVAL(Payment_Request__c,"2nd Half"),
VALUE(TEXT(SPIN_Amount__c))*0.5,
VALUE(TEXT(SPIN_Amount__c))
)))
Something is not correct, I think I have to use Case. Please advise
Else if the checkbox is not checked then it should return the value based of the Payment Request picklist value
My formula is as follows:
IF(
ISPICKVAL(Payment_Request__c,"Full"),
AND(SPIN_Kicker__c= True))
VALUE(TEXT(SPIN_Amount__c)*1.5),
IF(ISPICKVAL(Payment_Request__c,"1st Half"),
VALUE(TEXT(SPIN_Amount__c))*0.5,
IF(ISPICKVAL(Payment_Request__c,"2nd Half"),
VALUE(TEXT(SPIN_Amount__c))*0.5,
VALUE(TEXT(SPIN_Amount__c))
)))
Something is not correct, I think I have to use Case. Please advise
Change your code like this in formula, and you will get Values
I hope it will helpful
Thanks
Sagarika
CASE(
Payment_Request__c,
"Full", IF(SPIN_Kicker__c= TRUE, VALUE(TEXT(SPIN_Amount__c))*1.5,
VALUE(TEXT(SPIN_Amount__c))),
"1st Half",IF(SPIN_Kicker__c= TRUE, VALUE(TEXT(SPIN_Amount__c))*2.0,
VALUE(TEXT(SPIN_Amount__c))*0.5),
"2nd Half", VALUE(TEXT(SPIN_Amount__c))*0.5,
NULL
)