Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add Subtotals and Totals

Show the pipeline amount of each stage and a grand total row in a grouped Data Table, so a manager no longer exports the rows to a spreadsheet.

A sales manager wants to know how much pipeline sits in each stage, and how much in total, without exporting the table to a spreadsheet. With Summarize By on the Amount column, the table adds the total of each stage to its group and a grand total row at the bottom.

The grouped pipeline table with Sum $54,000.00 to Sum $507,000.00 on the right of each stage header and a final row reading Sum $1,639,000.00
Each stage shows the sum of its amounts, and the last row the total for all stages.

Before you start

  • A Data Table with a Query data source on Opportunity, with at least Opportunity Name, Stage and Amount as columns. See Data Table.

  • For subtotals, the table must be grouped. Follow Configuring Data Grouping first and group by Stage. Without grouping you still get one total row.

  • The column to summarize must use the Currency, Number or Percent type. Summarize By is not offered on other types.

Steps

1

Open the Amount column

  1. Select the Data Table on the canvas.

  2. In Data Mappings, open Columns and click the Amount column.

  3. Check that Type is Currency. A currency field gets this type by default.

2

Choose how to summarize

In the column's Type Attributes, set Summarize By:

Value
What the row shows
Use it for

Sum

The total of the column

Pipeline amount per stage

Average

The mean of the values

Average deal size

Count

How many rows have a value

Deals with an amount entered

The Amount column settings popover in the builder: Source Field Amount, Type Currency, and under Type Attributes, Summarize By set to Sum and Treat Blank Values As Zero off
Summarize By is in the column's Type Attributes, available on Currency, Number and Percent columns.
3

Decide what a blank amount means

By default, a blank value is skipped. Turn on Treat Blank Values As Zero to count it as 0 instead.

This changes Average and Count only. Five deals worth 100,000 in total, one of them without an amount, average 25,000 with the setting off and 20,000 with it on.

4

Keep or hide the grand total

On a grouped table, each group shows its subtotal and a grand total row closes the table. If the manager only needs the per stage figures, open the Group By section of the Properties panel and turn on Hide Grand Total.

5

Save and test

Save and open the page. Each stage shows the sum of its amounts after the word Sum, and the last row shows the sum for all stages. Collapse a stage: its subtotal stays visible on the group.

You can summarize several columns in the same table, each with its own method: Sum on Amount and Average on Probability (%), for example.

Troubleshooting

The total did not change after I edited or added a record

On a table with a Query data source, the total row can keep its previous value after a record is created or edited, even after the table refreshes. Reload the browser page to recompute it. This is a known issue.

Can the row say "Total" instead of "Sum"?

No. The label in front of the value is fixed: Sum, Avg or Count, in English, whatever the user's language. There is no setting to change or translate it today.

Summarize By does not appear

The column type is not Currency, Number or Percent. A number stored in a text field cannot be summarized: change the column's source field, or create a number formula field on the object.

Was this helpful?