Para hacer el cálculo matemático del Valor de contrato total esperado, debemos multiplicar la duración del contrato por los ingresos anuales estimados. El campo Duración del contrato (lista de selección) tiene los valores un año, dos años o tres años.
Ejemplo:
Valor de contrato total esperado = Duración del contrato * Ingresos anuales estimados
Valor de contrato total esperado = Dos años * 300 000 $
Resultado deseado: Valor de contrato total esperado = 600 000 $
Cuando se trabaja con campos de listas de selección, es importante tener en cuenta que son campos de texto y no pueden usarse en operaciones matemáticas sin primero convertirlos en valores numéricos. Aquí es cuando resulta útil la función CASE.
/* 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
/*), y deben terminar con un asterisco seguido de una barra (*/). Los comentarios sirven para explicar partes específicas de una fórmula a cualquier usuario que está viendo su definición.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.