You are here:
Sample Discounting Formulas
Identify discounted opportunities and calculate discount-adjusted amounts. Examples use custom currency amounts, percentages, rounding, and approval status.
Identify discounted opportunities and calculate discount-adjusted amounts. Examples use custom currency amounts, percentages, rounding, and approval status.
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: Essentials, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions |
For details about using the functions included in these samples, see Formula and Operator Functions.
This formula field uses two custom currency fields: Maintenance Amount and Services Amount. It displays “Discounted” on an opportunity if its maintenance amount and services amount don’t equal the opportunity Amount standard field value. Otherwise, it displays "Full Price."
IF(Maintenance_Amount__c + Services_Amount__c <> Amount,
"Discounted",
"Full Price")This formula calculates the difference of the product Amount less the Discount Amount. Discount Amount is a custom currency field.
Amount -
Discount_Amount__c
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.