Hiding Categories in a Computed Category
As with subtotals, you can suppress the display of the categories that are used in a computed category's expression and display only the computed category itself. The following example builds on the previous one.
This example uses the data file survey_sample.sav. See the topic Sample Files for more information.
- From
the menus, choose:
- Right-click Age category on the canvas pane and choose Categories and Totals from the pop-up menu.
- Select the Less than 45 computed category in the Value(s) list.
- Click Edit to display the Define Compute Category dialog box.
- Select Hide categories used in expression from table.
- Then click Continue.
- Select the Less than 65 subtotal in the Value(s) list.
- Click Edit to display the Define Subtotal dialog box.
- Select Hide subtotaled categories from the table.
- Then click Continue.
- Click Apply and then click OK in the table builder to create the table.
Like the previous example, the table includes a computed category and a subtotal. But in this case the categories in each are hidden so that only these totals are shown.