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.
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 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:
Only (3) Opportunities appear in the report:
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.
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).
000387985

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.