Spotfire® Web Client User Guide

Displaying grand totals for columns or rows in a cross table

You can show a grand total for each column or each row in a cross table. A grand total is by default calculated using the same expression that is used for calculating the cell values. For example, a grand total can indicate a 'grand sum' or a 'grand average'.

About this task

In the cross tables below, the aggregation method 'Sum' is used to aggregate the 'Sales' values, and accordingly, the Grand totals are also calculated as a 'Sum'.

In this example, grand totals for each column are shown.


Grand totals for columns

In this example, grand totals for each row are shown.

Totals are not based on the aggregated values shown in the cross table cells; they are by default based on the underlying data table rows. For example, if 'Average' is used as aggregation method, the Grand total average of a column takes into account all the data rows on which the cell values are based, and not only the averages shown in the cross table cells. See Displaying totals.

Note: There is, however, an option to base a total on the already aggregated cell values in the cross table. If you use this option, the total will be calculated as the sum of the cell values, no matter the expression used for the calculations of the cell values.

Procedure

  1. Right-click the cross table, and select Properties in the opened menu.
  2. Click Totals.
  3. Under Display totals, select the Grand total for columns or the Grand total for rows check box.

Results

The selected grand total is displayed in the cross table, column grand totals at the bottom of the cross table, and row grand totals furthest to the right.
Note: In the installed Spotfire client, you can also right-click the visualization and select Grand total for columns or Grand total for rows in the opened menu.