To calculate the Expected Total Contract Value we need to perform a mathematical calculation of the Contract Term multiplied by the Estimated Annual Revenue. The Contract Term (picklist) field has values of One Year, Two Years, or Three Years.
Example:
Expected Total Contract Value = Contract Term * Estimated Annual Revenue
Expected Total Contract Value = Two Years * $300,000
Desired outcome: Expected Total Contract Value = $600,000
When working with picklist fields, it is important to keep in mind that they are text fields and cannot be used in mathematical operations without first converting them into numerical values. This is where the CASE function comes in handy.
/* Convert Picklist value to a number */
CASE(Contract_Term__c,
"One Year",1,
"Two Years",2,
"Three Years",3,
0)
/* then multiply by the Estimated Annual Revenue */
* Estimated_Annual_Revenue__c
/*), and conclude with an asterisk followed by a forward slash (*/). Comments are useful for explaining specific parts of a formula to anyone viewing the formula definition.000395190

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.