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

Create a simple context-sensitive report in the crocodile survey

This describes briefly how to change the crocodile survey provided with Snap to create a simple context sensitive report .It consists of the following stages

Stage 1: Set up a derived variable to compare all data to the current context data

  1. Click Variables window button to open the Variables window.
  2. Open Q0 and change its Name to Location to make it more obvious what it is. This will be used as the context variable.
  3. Click New button on the Variables window toolbar to add a new variable.
  4. Specify the Variable details:

    Name: CComparison

    Label: Compare context to all

    Type: Derived (the variable will derive its data from Location, the existing location question).

    Response: Multiple (each respondent will fall into two cases).

  5. Double click in the first code label and click the [Insert] button. Select Variable Field... from the drop-down list.

    Derived variable with insert button highlighted

  6. Select Location as the Variable, and Context as the Aspect. This will give the selected location as the code label. Click [OK] to return to the variable definition.

    New vaariable field getting context aspect

  7. Press [Tab] to move to the Values column. Enter Location=Location@context. The code used will be the code that equals the location specified by the context.
  8. Press [Tab] to move to the next Label field and enter Other sites. Then enter NOT(Location=Location@context) as the Value. This code will be used when the response does not equal the location specified by context.
  9. Press [Tab] to move to the next Label field and enter All sites. Then enter True as the Value.

    New vaariable field getting context aspect

  10. Click Save button to save the variable.

Stage 2: Create a bar chart comparing one restaurant to the others using the comparison variable

  1. Click Chart button to display the Analysis Definition dialog for a chart.
  2. Select the chart style Bar Counts from the drop-down list.
  3. Type CComparison (your derived variable) into the Analysis field.
  4. Check the Transpose box.
  5. Select Means & Significances from the Calculate list and enter Q5 (the amount spent) as the variable to use.

    Reference dialog chart q2 by q9

  6. Change to the Notes/Titles tab and click in the Title field.

    Reference dialog titles with context and insert button

  7. Enter the title of your chart, using the [Insert] button to open the Variable field... dialog and insert the Name Aspect of Q5 and the Context Aspect of Location in the title.

    New vaariable field getting context aspect

  8. Clear the Chart Axis titles.
  9. Select the Base/Labels tab.
  10. Clear the Reports Include options for Description and Notes if set.
  11. Click [Apply] to see your chart.

    Comparison bar chart for crocodile cafe locations: no context

    It will have no data for the title and subject as no context has been set.

  12. Click Save button to save your chart.

Stage 3: Create a comments list filtered on context

  1. Click Toolbar: list to create a list. The picture below shows a list consisting of the variable (Q8) with comments plus the displayed location.

    Apply a filter of Q8 ok and Location=Location@context to filter the comments according to the current location. Q8 ok tests that an answer has been supplied to Q8 to strip out empty comments. Location=Location@context filters the comments according to the selected location.

    RD: base labels tab with report include area highlighted

  2. Select the Base/Labels tab and clear the Reports Include options for Description and Notes if set.
  3. Click [OK] to create the new list.

    It will have no content as no context has been set.

  4. Click Save button to save your list.

Stage 4: Create your report including the comparison bar chart and filtered comment list

  1. Click Batches button on the Snap toolbar to open the reports window.
  2. Click New button to create a new report and give it a label describing it.
  3. Click New button on the report dialog and select Information to add a piece of text to your report.
  4. Enter the title for your report in the text pane. Leave the Title field blank.

    Information instruction with title

  5. Click [OK] to add the Information instruction to the report.
  6. Click New button on the report dialog and select Execute.
  7. Click on the Execute dialog and select the comparison chart (AN17) from the list.
  8. Click [OK] to add the Execute instruction to the report.
  9. Click New button on the report dialog and select Information to add text after the comparison chart.
  10. Enter some text describing the comments list. Use [Insert] to insert the Context Aspect of the Location variable to insert the label of the current location.
  11. Type AN18 empty in the N/A field. This tests if there is currently any data in the comments list (analysis AN18). If there is not, the instruction will not be used in the report.

    Information instruction showing context

  12. Click [OK] to add the Information instruction to the report.
  13. Click New button and select Execute from the drop-down menu.
  14. Select the comments list (AN18) from the list of analyses.
  15. Click [OK] to add the Execute instruction to the report.

    Information instruction showing context

  16. Click Save button to save your report.

If you test your report in Snap by setting a global context, remember to remove it before you proceed

Hide this content.

See Also

Tutorial 5: Creating a simple context report and assigning it to associates

Upload the survey to Snap WebHost (archive if survey closed)

Create associates manually and assign the survey to them

Assign surveys to multiple associates by uploading a file