When using table calculations, grand totals and subtotals might show unexpected results. The option to change the aggregation type of the grand total to something other than Automatic is grayed out.
For example, the view shows the difference in average regional sales between quarters. The automatic grand total is incorrect: it shows the difference between the average sales for the entire quarters, rather than the sum of differences between the average regional sales.
Totals set to Total using > Automatic will compute the measure across the entire data set (as though the table in the view does not exist). Automatic grand totals will usually be correct if the table calculation uses only additive aggregations (e.g. SUM(), etc.. ). For example, the sum of each individual sale will be the same as the summing up the sums of sales per customer.
If the table calculation refers to any fields that use a non-additive aggregation (e.g. division, multiplication, MIN(), AVG(), etc.) then the total will not equal the sum of the numbers in the view. For example, the average of each individual sale (AKA overall average) is different then summing up the average of sales for each customer.
Only Automatic totals are currently available for table calculations. To voice your support for the inclusion of this enhancement in a future product release, add your vote to the following Salesforce Idea: Totals and subtotals over displayed marks instead of separate calc (aka make subtotals work like Excel)
IF FIRST() = 0 THEN WINDOW_SUM([Difference Between Average Sales]) END
001473705
1312 KB

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.