Thursday, December 3, 2026 | London 11°C · Overcast
DailyGlimpse

AI

Master Salesforce Reports: Easy Formula to Calculate Percentage of Subtotal

CRM Tutorials Library 2 min read

In this beginner-friendly tutorial, you'll learn how to calculate the percentage of subtotal in Salesforce reports. This technique is essential for analyzing data distribution, such as the share of each product category in total sales.

Step 1: Create a Summary Report

Start by building a report that groups your data by the desired dimension (e.g., product line). Add the numeric field you want to analyze (e.g., Amount) to the report. Ensure the report type is 'Summary' or 'Matrix'.

Step 2: Add a Row-Level Formula

Click on 'Add Formula' in the report builder. Choose 'Row-Level Formula' and name it (e.g., "Percentage of Subtotal").

Step 3: Write the Formula

Use the following formula to compute the percentage:

(Amount / PARENTGROUPVAL(Amount, GRAND_SUMMARY)) * 100
  • Amount is the field you're analyzing.
  • PARENTGROUPVAL retrieves the grand total (subtotal) for the report.
  • Multiply by 100 to display as a percentage.

Step 4: Format as Percentage

In the formula editor, set the output type to 'Percent' and choose decimal places as needed. Click 'Ok' to save.

Step 5: Run the Report

Your report will now show each row's value as a percentage of the total subtotal. This works for any standard or custom numeric field.

Pro Tips

  • Use PARENTGROUPVAL(Amount, PREVIOUSGROUPVAL) to calculate percentage of a parent group instead of grand total.
  • Add conditional formatting to highlight high or low percentages.
  • This method works in Lightning and Classic report builders.

Now you can easily visualize how individual records contribute to the whole in your Salesforce reports!

React