You need to sign in to do that
Don't have an account?
Yvonne-Ban-Air
Help - Amount Calculation Formula
I would like to achieve below calculation:
If Stage Name = "Submit"
Total Amount=Goods Amount + Delivery Amount + Installation Amount
Formula:
Total Amount= IF( ISPICKVAL(StageName, "Submit"), (Goods_Amount__c+Delivery_Amount__c+Installation_Amount__c), 0)
This formula has no error, but cannot trigger the result. Any idea? Thank you.
Hi Mark
I have got it working. Thank you so much for your help!!
All Answers
Your formula should work as is, but as a sanity check, remove the extra parentheses around the fields you are adding. The result should look like this:
IF(ISPICKVAL(StageName, "Submit"), Goods_Amount__c+Delivery_Amount__c+Installation_Amount__c, 0)
I have just tried it, but it came up with this message:
Error: Formula result is data type (Number), incompatible with expected data type (true or false).
Please advise.
Yes, they are currency fields.
I tried to set a formula for commission calculation the other day, I found this example from Salesforce user guide. I tried to copy it, however, it doesn't work. I can't figure out the reason.
IF(ISPICKVAL(StageName, "Closed Won"),
ROUND (Amount *0.02, 2), 0)
Sorry for the confusion.
I have no idea whether the formular field is a Currency field. Could you please advise how can I make sure of this?
The error is for the initial post (Total Amount). Please ignore my previous post ( Commission Calculation). They are different cases.
Additional information for you, hope it helps:
I added the formula as Validation rule under the Opportunity field- Total Amount (Currency).
The other fields - Goods Amount, Delivery Amount and Installation Amount, also currency fields in the Opportunity page.
Hi Mark
I have got it working. Thank you so much for your help!!