Hiding Subtotaled Categories
You can suppress the display of the categories that define a subtotal and display only the subtotal, effectively "collapsing" categories without affecting the underlying data.
- Open the table builder (Analyze menu, Tables, Custom Tables).
- Click Reset to clear any previous settings in the table builder.
- In the table builder, drag and drop Age category from the variable list to the Rows area on the canvas pane.
- Right-click Age category on the canvas pane and choose Categories and Totals from the pop-up menu.
- Select 3.00 in the Value(s) list.
- Click Add Subtotal to display the Define Subtotal dialog box.
- In the Label text field, type Less than 45.
- Select (check) Hide subtotaled categories from the table.
- Then click Continue.
This inserts a row containing the subtotal for the first three age categories.
- Select 6.00 in the Value(s) list.
- Click Add Subtotal to display the Define Subtotal dialog box.
- In the Label text field, type 45 or older.
- Select (check) Hide subtotaled categories.
- Then click Continue.
- To include a total with the subtotals, select (check) Total in the Show group.
- Click Apply.
The canvas reflects the fact that subtotals will be displayed but the categories that define the subtotals will be excluded.
- Click OK to produce the table.
