Salesforce report formulas allow users to create custom calculations within reports, moving beyond standard summary fields. This tutorial covers the two primary types: summary formulas and row-level formulas.
Summary Formulas operate on grouped data, such as summing opportunity amounts by stage. For example, you can calculate the average deal size or percentage of total opportunities closed won. These formulas are applied at the grouping level and use aggregate functions like SUM, AVG, COUNT, MIN, and MAX.
Row-Level Formulas work on individual records before grouping. For instance, you can compute the difference between the expected revenue and actual amount for each opportunity, then group by owner. These formulas reference individual field values and are evaluated per row.
To create a formula, navigate to the Report Builder, click the "Formulas" dropdown, and select "Add Formula." Define the formula name, type (summary or row-level), and the expression using fields and functions. For summary formulas, specify the aggregation level (e.g., Grand Summary or Grouping 1).
Common use cases:
- Calculating conversion rates (e.g., Leads Converted / Total Leads)
- Weighted pipeline amounts (Probability * Amount)
- Time-based metrics (Days Since Last Activity)
Remember: Summary formulas cannot reference row-level results, and row-level formulas cannot use aggregate functions. Choose the type based on whether the calculation needs grouped or individual data.
This foundational knowledge empowers new Salesforce admins and report builders to create dynamic, insight-rich reports without leaving the platform.