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

Previous Topic

Next Topic

Book Contents

Book Index

Step 1: Using a derived variable to total the number of adults and children

This assumes that you have two questions: one asking for the number of adults and the other other asking about the children.

You must create a derived quantity variable to add the numbers together.

  1. Click Variables window button on the Snap toolbar to display the Variables window.
  2. Click New button on the Variables window toolbar to add a new variable.
  3. Specify the Variable details:

    Name: Total

    Label: Compare context to all

    Type: Derived (the variable will derive its data from Q4 and Q5, the questions that ask how many adults and children are in the group)

    Response: Quantity (the data will be calculated from other responses).

  4. Put your calculation in the Values field of the OK code. The example shows adding the coded number of adults (Q4) to the coded number of children (Q5)-1. This is because the code values of Q5 are one more than the number of children (code 1 is 0 children).

    Derived variable with insert button highlighted

  5. Click Save button to save the total variable.

See Also

In-survey calculation tutorial: Displaying a total and providing an appropriate discount code

Step 2: Using a derived variable to calculate an appropriate voucher code

Step 3: Use your calculated results in a later question

Step 4: Using routing (skip logic) to show the question when necessary