Snap XMP Help

Using external filters and contexts

You are here:
< All Topics
image_pdfimage_print

External filters and contexts can be defined in the Analyses and Reports windows. They are available to apply to analyses and reports to limit which data responses are included in the analysis or report. The external filters and contexts are also used to specify how a shared user can filter reports and analyses in Snap Online.

Defining external filters and contexts

The external filters and contexts are defined from the Analyses or Reports windows. Once defined, the filter or context can be applied to reports and analyses in Snap Desktop and Snap Online.

DefFilterContext.PNG
  1. Click Analyses AnalysesIcon.png or Reports  ReportsIcon.png on the Snap Desktop toolbar.
  2. Click on Define External Filter/Context  FilterIcon.png . This opens the Define External Filter/Context dialog.
  3. Select the Filter tab to enter a filter or the Context tab to enter a context.
  4. Click Add to add a new filter or context variable to the list. Select from the list of variables in the selected survey and click OK.
  5. Use Move Up and Move Down to change the order of the list.
  6. Select the variable that you wish to apply a mask to and enter the name of the mask variable in the Mask field (this must be in the format of variable@context).

Applying external filters and contexts

External filters or contexts allow you to filter the cases used in an analysis or report without changing the analysis or report definition. This is useful for testing the filters available in Snap Online.

Apply a filter or context for an analysis by:

  1. Click Analyses AnalysesIcon.png on the Snap Desktop toolbar.
  2. Open the analysis in the Analysis Display dialog.
  3. Click on Apply External Filter/Context  FilterIcon.png . This opens the Apply External Filter/Context dialog. If this is disabled then select Allow additional filters on the Analysis Definition dialog.

Apply a filter or context for a report by:

  1. Click Reports  ReportsIcon.png on the Snap Desktop toolbar.
  2. Select the Report and click Execute/Check Report RunIcon.png on the Reports toolbar.
  3. Click the Filter/Context button. This opens the Apply External Filter/Context dialog.

In the Apply External Filter/Context dialog:

  1. Select the Filter or Context tab.
  2. Select the code(s) in the selected variable(s) in the list to apply a filter or context.
  3. If you have applied a mask to the filter, the filter codes displayed will depend on the mask settings.
ApplyFilterContext.PNG
  1. Click OK to apply the filters and contexts to the analysis or report.
Contents