This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
This example shows how to create a short sub-report that includes a chart showing items bought. The sub-report uses the location as a context variable, so it will only show items bought in the selected location. The example is based on the crocodile survey supplied with Snap WebHost where Q0 specifies the location of the restaurant.
By default you will have two summary reports available, the questionnaire report, which provides a topline analysis based on the questionnaire layout, and the summary, which provides a chart or table for each question.

The Report definition window opens, with one default instruction. This report is going to hold the data that is specific to a location. Make this clear in the Label and add a context filter of Q0=Q0@context. This means that everything in this sub-report will only use the data appropriate to the specified location.


Click [OK] to save your instruction.


|
See Also |