How to Calculate Percentage of Grand Total at Summary Level in Salesforce Reports (Step-by-Step Guide)

In Salesforce reports, we sometimes need to understand how much each group contributes to the total. This is where calculating the percentage of the grand total becomes very useful.

In this article, we will learn how to calculate the percentage of the grand total at the summary level in Salesforce reports with a simple step-by-step approach and real-time examples.

In our Salesforce org, we analyzed the successful opportunities from the previous quarter. There, we calculated the subtotal of the amount generated by the successful opportunities.

We are also required to determine the percentage of the amount generated by each opportunity to analyze its contribution to total revenue.

As a system admin, I was assigned the task of fulfilling this requirement. To solve this requirement, I calculate the percentage of the grand total at the summary level in Salesforce Reports.

What is Percentage of Grand Total in Salesforce Report?

In Salesforce reports, we can calculate the percentage of a summary field relative to the grand total to understand the distribution of similar data across the various fields, such as the number of opportunities at different stages.

In Salesforce reports, this is done by summarizing a field at the group level. We create a summary-level formula that adds a new column to your report, showing the percentage that each group’s total contributes to the overall total.

This is useful for summary or matrix reports to visualize each group’s contribution.

Calculate Percentage of Grand Total in Salesforce Reports

To create a formula to calculate the percentage of the total in a Salesforce report, navigate to the Reports tab and follow the steps below.

  1. In the reports tab, select the report in which you have to calculate the percentage of the total amount.
  1. In this example, I will calculate the percentage of the total Amount field for the Opportunity. In this report, I have grouped the opportunities by stage.
    • Ensure that you have added the subtotal to the column. To add the subtotal, first enable the Subtotal option, then click the amount column dropdown and select Summarize > Sum.
Calculate Percentage of Grand Total at Summary Level in Salesforce Reports
  1. Now, we will add a formula column that displays the percentage of the total. For that, go to the left sidebar and
How to Calculate percentage of total in Salesforce reports
  1. In this step, we will define the summary-level formula for calculating the percent of the total amount.
    • In the Column Name, enter the name of the formula column.
    • In the Formula Output type, select the Percent option.
    • In the Formula text area, enter the following formula:
Amount: SUM / PARENTGROUPVAL (AMOUNT:SUM, CLOSE_DATE)
  1. In the above formula, Amount: Sum is the summary field, and Close date is the grouping level to calculate the percentage.
    • To select a grouping content for the summary formula, click Selected Groups in the Display section. Then, select the grouping from the available group rows.
Calculate percentage of subtotal in Salesforce Reports
  1. Validate the formula, and if it validates successfully, click Save.
Summary level formula to calculate percentage total in Salesforce report
  1. As we click on the Apply button, the formula column will be created in the report, displaying the percentage of the opportunity’s total amount.
Percentage total formula column in Salesforce Report

Finally, save and run the report to apply the changes that we have made.

    So, this is how we can calculate the percentage of the grand total at the Summary Level in Salesforce reports.

    Difference: Row-Level vs Summary-Level Formula in Salesforce Reports

    FeatureRow-Level FormulaSummary-Level
    Works per recordYesNo
    Works on grouped dataNoYes
    Use caseField calculationAggregated calculation

    Conclusion

    By following the steps above, you can calculate the grand total percentage using a summary-level formula that displays the percentage for the grouped values.

    I hope you have understood the concept of the percentage total in the Salesforce report by now. In the steps above, we discussed the procedure for creating a summary-level formula to calculate the percentage of the grand total in Salesforce reports.

    You may also like to read:

    Agentforce in Salesforce

    DOWNLOAD FREE AGENTFORCE EBOOK

    Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.

    Salesforce flows complete guide

    FREE SALESFORCE FLOW EBOOK

    Learn how to work with flows in Salesforce with 5 different real time examples.