Loading
Salesforce now sends email only from verified domains. Read More
Get Started with Communications, Media, and Energy & Utilities (CME)...
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Define and Validate Margin Ranges

          Define and Validate Margin Ranges

          You can define margin ranges using the pricing plan so that the cost does not exceed the price. This is optional. If you do not set up a validation process, users aren't notified when a margin range has been violated.

          Tip
          Tip

          The Default Pricing Plan includes a step to calculate margins after you complete the setup described in this section. See Default Pricing Plan in EPC.

          Margins for each line item can be validated using a LoadMarginRange step in your pricing plan. The LoadMarginRange step invokes a calculation procedure and matrix. This is similar to how attribute-based pricing is implemented using pricing plans.

          In general, margins are calculated using the following formula: = ((priceTotal - costTotal) / costTotal) * 100

          For example, ((oneTimePriceTotal - oneTimeCostTotal) / oneTimeCostTotal) * 100 gives you the oneTimeMargin. See Formulas for Margins, Recurring Margins, and Usage Margins.

          Follow these steps to define a margin range and validate the range.

          1. Create an Omnistudio Data Mapper
          2. Create a Calculation Matrix
          3. Create a Calculation Procedure
          4. Add Parameters to the Pricing Plan
          5. After you have created the margin range validation process steps, go to the Industries CPQ Cart and add products. If the margin range is violated for the products in your cart, you will see an error message. You will not be able to submit the opportunity, quote, or order until you resolve the error.
          • Formulas for Margins, Recurring Margins, and Usage Margins
            Use the following formulas to calculate margins, recurring margins, and margin totals for line items in the Industries CPQ Cart.
          • Create a Omnistudio Data Mapper for Cost and Margin
            You must create a Data Mapper before you can use Data Mapper as a data source to identify and extract the order item (Order Product) or the line item. As an example, you can use the product code and quantity.
          • Create a Calculation Matrix for Cost and Margin
            After you have identified the product to which you want to associate a margin range, create a calculation matrix. Specify the input data and make it a unique record (unique row). Identify and specify the lower and upper bounds of the margin range. Set up margin ranges using calculation procedures. Define margin ranges in the Calculation Matrix.
          • Creating a Calculation Procedure for Cost and Margin
            The calculation procedure calls the associated calculation matrix to find the margin range for the product and then returns the output from the matrix to the pricing service. If a line item in the cart is outside the upper and lower bounds of the margin range, the Industries CPQ Cart reports an error to the user. For example, if you defined a margin range that cannot be lower than 5%, the Industries CPQ Cart shows an error if the range is 4% for that line item.
          • Add Parameters to the Pricing Plan for Cost and Margin
            In the Product Console, edit the pricing plan that you want to use to validate the margin ranges. Next, edit the Load Margin Ranges step and add only one of the following parameters you want in the General Properties section.
          • Pricing Variables for Cost and Margins
            Pricing variables are available out-of-the-box. This is required to create a calculation procedure for cost and margin and is part of defining and validating margin ranges.
           
          Loading
          Salesforce Help | Article