Editing a Filter Using the Filter Syntax Pane

In the Filter pane, the filter information appears in graphical format. You may have noticed that as you create a filter in this pane, the full filter expression is displayed in the Filter Syntax pane at the bottom of the screen. For example, if you create a filter to exclude respondents in the 11-16 year age group, you will see the syntax:

Not age.ContainsAny({E1116_years})

appear in the Filter Syntax pane.

This is useful, for example, when you want to copy and paste the expression for use in a script or some other application. You can also edit the expression directly once you become familiar with the syntax. You can even use this pane to create a new filter from scratch.

To Display the Filter Syntax Pane

From the menu, choose

The pane appears at the bottom of the screen. You can resize it and move it around the IBM® SPSS® Data Collection Survey Reporter window as required.

To Edit the Filter Expression

Place the cursor in the Filter Syntax pane and type in the expression for the filter, or edit the existing expression. You can use any expression that is supported by the IBM® SPSS® Data Collection Data Model, including the functions in the IBM SPSS Data Collection Function Library.

To validate and apply the filter syntax, choose the Apply button. If the expression is valid, the Filter pane is automatically updated to show the filter conditions. If it is not valid, an error is displayed.

If you make a mistake while editing the syntax, choose the Cancel button to return to the previously applied syntax.

See the Function List for details of the functions available. See also the Expression Evaluation and Data Collection Function Library topics in the IBM® SPSS® Data Collection Scripting section of the IBM® SPSS® Data Collection Developer Library for further information on syntax.