Rollup Helper Use Case Library | Passage Technology

Calculating Margin on an Opportunity

Written by Passage Technology | May 01, 2014

Problem: There isn't an out-of-the-box option or field in Salesforce that calculates margin on a sales deal.

 

Solution: Start by creating a total cost field on the opportunity record that is a currency field.

  1. Create a total cost field on the opportunity record that is a currency field.

  2. Add a product cost field to your products.

  3. Rollup your Opportunities Line Items, and reference the source field for the related product's cost to get the total product cost across all line items.

  4. Then create a formula field that calculates margin between selling pricing and product cost.