Creating running totals

You often have a set of questions where you wish to total the answers. For example:

  • asking how many hours a week respondents spend doing different things
  • asking how much money respondents spent on different activities during a visit
  • asking respondents to share a fixed amount or percentage between a set of options

The amount allocated to each option gives the relative importance of each. This gives good numeric data for analysis, but is quite difficult for respondents.

This worksheet shows you how to calculate a running total as the respondent completes the answers. It explains how to create a set of Open Series First and Open Series Next questions for quantity responses and put a running total into the final response. It also shows you how to set a valid range on the total, so that respondents cannot move to the next page if the total has overrun.

Please note: The Open Series First and Open Series Next question styles are new in Snap XMP Desktop. If you are using a survey that has been upgraded from Snap 11 Professional then the equivalent question style is Open Grid First and Open Grid Next.

Step 1: Create your set of questions

The first step is to create the group of questions that need to be totalled. These must be quantity questions.

  1. In Snap XMP Desktop, open the survey in the Questionnaire window.
  2. Click New Question to create a new question.
  3. Select Open Series First as the question style
  4. Select Response in the next dropdown then select Quantity as the response type.
Graphical user interface, application

Description automatically generated
  1. Enter the question text, for example “How did you spend your day at the activity centre? Please allocate hours to the activities up to a maximum of 8 hours.
  2. Enter the first activity in the grid label.
  3. Press Tab to create the next question in the list. By default, the next question added is an Open Series Next question with a Quantity response. Enter another activity in the grid label. Repeat until you have entered all the activities.
  4. Add an extra grid question to display the running total.
Graphical user interface, text, application

Description automatically generated
  1. Click Save to save the questionnaire.

Step 2: Display the total in the calculated field and set the valid range

  1. Select the open series question that will display the total.
  2. Click Variable Properties to open the Variable Properties dialog.
  3. In this example, the total hours have a valid range of 0 to 8. Scroll to the Valid property and enter 0 to 8.
Table

Description automatically generated
  1. Scroll to the Initial Value property and enter the total: Q1a+Q1b+Q1c+Q1d+Q1e. When the open series entries change the value of the total field is updated when the respondent moves to the next entry. The questions used in the total calculation must always be asked earlier in the questionnaire.
Graphical user interface, application, table

Description automatically generated
  1. By default, the Read Only property is set to No. This allows the respondent to edit the total field. In this example, the total should not be edited so set the Read Only property to Yes. This renames the Initial Value property to the Calculation property.
Graphical user interface, table

Description automatically generated
  1. Click OK.
  2. Click Save to save the questionnaire.
  3. When the questionnaire is complete. Publish the survey in Snap XMP Desktop or Snap XMP Online.
Graphical user interface, text, application

Description automatically generated

If there is a topic you would like a worksheet on, email to snapideas@snapsurveys.com

Contents