This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Example of using case numbers in a complex filter

There are occasions when you do not wish to ask a specific question, such as the date of the survey or the location to which the survey refers, but you still wish to be able to browse through the data in these groupings. So long as the cases are keyed in the appropriate blocks, one solution is to set up a derived variable based on the case numbers. In this example, the surveys come from 3 different locations and each location was keyed in consecutive cases.

WinHelp: LightThese case number expressions can be used as filters without setting up a Derived Variable.

  1. Click Variables window button to display the Variables Window.
  2. Click New button to add a new variable.
  3. Specify the Variable Details. Each respondent will only fall into one of the new codes.

    Name: V2

    Label: Location

    Type: Derived (the variable will derive its data from other existing information.)

    Response: Single

  4. Specify the Code Details:

    Code

    Code Label

    Value

    1

    Area 1

    CASE<78

    2

    Area 2

    CASE>=78 AND CASE<=162

    3

    Area 3

    CASE>162

Click Save button to save the variable.

When specifying a filter to browse or edit data, this new variable can be used to identify the location groups. For example Area 3 can be identified using the filter V2=3.

See Also

Using patterns in filters

Example of setting up a variable for a complex filter

Finding errors