Loading

Grand Total in Reports doesn't match Custom Summary Formula Totals

Publiceringsdatum: Aug 14, 2023
Beskrivning

When a Custom Summary Formula that summarizes a value is added to a report, the value that will appear in the grand total may not be equal to the sum of the values that appear on the report.

Lösning

This is because the sum of the Formula Fields is not the sum of the values that are calculated in each report row: the Grand Total is calculated on its own at run time.

Another reason for the mismatch could be the Smart totaling. Learn more in our article Report total doesn't match the total in Excel or in a Dashboard table component.
 

Example

Example custom summary formula field added to an Opportunity report:  IF(AMOUNT.CONVERT:SUM<0, 0,AMOUNT.CONVERT:SUM)

The formula appears as a column and on all grouping levels. The report is in summary report format and has (2) groupings:

  • Grouping 1: Account Name
  • Grouping 2: Opportunity Owner


Only (3) Opportunities appear in the report:

  • One (1) for UserA with a converted amount of -365.25
  • Two (2) for UserB with a total of converted amount of 401


The report shows a difference of amounts between the sum of the field amount converted (visible by adding the field as a column of the report, then opening the drop down menu of the column and selecting "summarize this field..." and flagging the checkbox "sum" and clicking on apply) and the formula above.


User-added image

Since -365 for UserA is a negative value, the formula displays 0.

For UserB, the value is positive, so the formula displays the summarized value of the two Opportunity amounts.

When the formula evaluates the values for the grand total, it checks if the total value is above or below zero. If the total value is above zero, it calculates the sum of all the Opportunity amounts in the report (300 + 101 - 365) and not the sum of the values above zero (400.85 + 0).

Knowledge-artikelnummer

000387985

 
Laddar
Salesforce Help | Article