Subtotals (Group By)

Adding Subtotals is a great way to organise your data so that it is more useful.
In this article you will learn how to add one or more Subtotals.
Setting up Subtotals is slightly different in different report style:

Report Style

Pivot Style

Simple Subtotal - Group by

When in a Report style worksheet and in View or Edit Mode a simple Subtotal can be added using the Group by field.

Here we add a Subtotal by Customer State to a list of Customer sales using the Group by field. 

GB 01 - Simple.pngThe resulting report will show Subtotals by State.

GB 02 - State.png

Advanced Subtotals - Using the Report Designer

When in a Report style worksheet and in Edit Mode more advanced and multiple subtotals can be added and changed. Select the Edit button to open the Report Designer.

GB 07 - Edit reprot des.png

In the Group box, Select Add a Field to see Mapping Fields that are available to add to the report. 
Drag the Customer State field to the Group box.  
This will create the same report as above, Customer Subtotalled by State.

GB 08 - add group by.png

To add Multiple subtotals select another Field e.g Location (or Country etc)
To Subtotal by Location place that field first, then Indent the State field under it to change the Group level.
If you do not indent the State field then the Location will appear along side each State. 

GB 10 - indent multiple.png

The resulting report will show Customers Grouped first by Location (or Country)  and then by State.

GB 09 - Multiple ST.png

Grand Total Position in Reports - Top, Bottom or None

When in a Report style worksheet Grand Totals can set to display on Top, at the Bottom or Not to or not display.  

When in Edit Mode select the Settings Tab then choose the Grand total Position. 

GB 14 - GT report.png

Expand or Collapse Rows

Once you have added subtotals you have the option on the Settings menu to show:

  • show every Customer (rows expanded); or 
  • just show totals (rows collapsed), see example below

GB 11 - Expand all rows.png

 

Pivot Style

Subtotals in Pivots - Using the Report Designer

When in a Pivot style worksheet subtotals can only be added and changed when in Edit Mode. Select the Edit button to open the Report Designer.

GB 03 - Edit.png

Select Add Field to see Mapping Fields that are available to add to the report. 
Add the Customer State field to the Fields box. 
Note: in Pivots there is no Group by box as the second box is used to define the Columns to Pivot on. 

GB 05 add field.png

To Subtotal by State place that field first, then Indent the Customer Name field under it to change the Group level. If you do not indent the Customer Name field then the State will appear along side each customer name. 

GB 06 - Indent.png

The resulting report will show Customers Grouped by State with a Subtotal.

GB 06 - Pivot by State.png

Subtotals in Pivots - Layout Choices

Pivot Style worksheets have two Row Header Layout choices Standard or Tree.

a. Standard Row Header Layout

The Standard has a separate column for each field and adds the subtotal at the bottom. This is great when the data in the subtotals is fairly compact. 

GB 13 - standard.png

b. Tree Row Header Layout

The Tree adds a subtotal at the top and does not have a separate column for each field.
This is great when the data in the subtotals is longer and when space is at a premium.

GB 12 - Tree.png

Grand Totals in Pivots - Display or Hide

When in a Pivot style worksheet Grand Totals can set to display or not display.  When in Edit Mode. select the Settings Tab then choose to Show or Hide Row Grand Totals

GB 15 - GT Pivot.png

 

 

 

 

 

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more
Ask the BI4 Community
Need help using this report or feature?