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

Next Topic

Book Contents

Book Index

Create a report including a comparison

If you wish to create a report containing a comparison, then you cannot filter the data the report uses, as it requires all the data to make the comparison. Instead, you must filter the data for each instruction or sub-report that only contains context-related data, and make sure it is not filtered on the comparison reports.

This example shows how to set up a report for the different locations in the crocodile survey that includes a chart showing the items bought in the specified location, and a comparison chart showing the different amounts spent in different locations.

The steps required are:

  1. Open the Crocodile survey supplied with Snap.
  2. Click Batches button to open the Reports window.
  3. Click New button on the Reports window toolbar to add a new report. This is going to be the full report, which contains data specific to each restaurant and a comparison of that restaurant with others. Give it a suitable description.
  4. Click New button to add a new instruction to your report and select Execute. The Execute dialog opens.
  5. Select the sub-report that has been filtered by context and click [OK].
  6. Add a new Page Layout instruction with Start New Page selected so the comparison data appears on a new page, and click [OK].
  7. Add an Information instruction and enter the text Comparison data, then click [OK].
  8. Click New button on the toolbar to add an Execute instruction. The Execute dialog opens. Select the comparison chart you created, and click [OK].

    Restaurant report with 4 instructions

It is now possible to create a short report showing data for a single restaurant and then data for the restaurant compared to all other restaurants. Before running the report for all locations, it is best to test it. You can either close and save your report now by clicking Save button , or set the global context to test it, and then run it immediately.

See Also

Creating a sub-report that contains data specific to a context

Executing an instruction in a column label