{"id":5939,"date":"2021-06-24T10:59:48","date_gmt":"2021-06-24T09:59:48","guid":{"rendered":"https:\/\/www.snapsurveys.com\/support-snapxmp\/?post_type=epkb_post_type_1&#038;p=5939"},"modified":"2023-10-04T15:45:53","modified_gmt":"2023-10-04T14:45:53","slug":"using-external-filters-and-contexts","status":"publish","type":"epkb_post_type_1","link":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/","title":{"rendered":"Using external filters and contexts"},"content":{"rendered":"\n<p>   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 XMP Online. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Defining external&nbsp;filters and contexts <\/h2>\n\n\n\n<p>   The external filters and contexts are defined from the Analyses or Reports windows. Once defined, the\u00a0filter\u00a0or context can be applied to reports and analyses in Snap XMP Desktop and Snap XMP Online. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"386\" height=\"394\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/deffiltercontext-png.png\" alt=\"DefFilterContext.PNG\" class=\"wp-image-5940\" srcset=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/deffiltercontext-png.png 386w, https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/deffiltercontext-png-294x300.png 294w\" sizes=\"(max-width: 386px) 100vw, 386px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>   Click\u00a0<strong>Analyses<\/strong>    <img decoding=\"async\" width=\"26\" height=\"26\" class=\"wp-image-5941\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/analysesicon-png.png\" alt=\"AnalysesIcon.png\">    or <strong>Reports<\/strong>\u00a0   <img decoding=\"async\" width=\"26\" height=\"26\" class=\"wp-image-5942\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/reportsicon-png.png\" alt=\"ReportsIcon.png\">    on the Snap XMP Desktop toolbar. <\/li>\n\n\n\n<li>\n  Click on&nbsp;<strong>Define&nbsp;External&nbsp;Filter\/Context<\/strong>&nbsp;\n  <img loading=\"lazy\" decoding=\"async\" width=\"26\" height=\"24\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/filtericon-png-4.png\" class=\"wp-image-5943\" alt=\"FilterIcon.png\">\n  . This opens the Define External Filter\/Context dialog.\n<\/li>\n\n\n\n<li>\n  Select the <strong>Filter<\/strong> tab to enter a filter or the <strong>Context<\/strong> tab to enter a context.\n<\/li>\n\n\n\n<li>\n  Click<strong>&nbsp;Add<\/strong>&nbsp;to add a new&nbsp;filter&nbsp;or context variable to the list. Select from the list of variables in the selected survey and click <strong>OK<\/strong>.\n<\/li>\n\n\n\n<li>\n  Use&nbsp;<strong>Move Up<\/strong>&nbsp;and&nbsp;<strong>Move Down<\/strong>&nbsp;to change the order of the list.\n<\/li>\n\n\n\n<li>\n  Select the variable that you wish to apply a mask to and enter the name of the mask variable in the&nbsp;<strong>Mask&nbsp;<\/strong>field (this must be in the format of&nbsp;<em>variable<\/em><strong>@context<\/strong>).\n<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Applying external&nbsp;filters and contexts <\/h2>\n\n\n\n<p>   External\u00a0filters\u00a0or contexts allow you to\u00a0filter\u00a0the cases used in an analysis or report without changing the analysis or report definition. This is useful for testing the filters available in\u00a0Snap XMP Online. <\/p>\n\n\n\n<p>\n  Apply a filter or context for an analysis by:\n<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>   Click\u00a0<strong>Analyses<\/strong>    <img loading=\"lazy\" decoding=\"async\" width=\"26\" height=\"26\" class=\"wp-image-5944\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/analysesicon-png-1.png\" alt=\"AnalysesIcon.png\">    on the Snap XMP Desktop toolbar. <\/li>\n\n\n\n<li>\n  Open the analysis in the Analysis Display dialog.\n<\/li>\n\n\n\n<li>\n  Click on&nbsp;<strong>Apply&nbsp;External&nbsp;Filter\/Context<\/strong>&nbsp;\n  <img loading=\"lazy\" decoding=\"async\" width=\"26\" height=\"24\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/filtericon-png-5.png\" class=\"wp-image-5945\" alt=\"FilterIcon.png\">\n  . This opens the <strong>Apply External Filter\/Context<\/strong> dialog. If this is disabled then select <strong>Allow additional filters<\/strong> on the&nbsp;Analysis Definition&nbsp;dialog.\n<\/li>\n<\/ol>\n\n\n\n<p>\n  Apply a filter or context for a report by:\n<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>   Click\u00a0Reports\u00a0   <img loading=\"lazy\" decoding=\"async\" width=\"26\" height=\"26\" class=\"wp-image-5946\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/reportsicon-png-1.png\" alt=\"ReportsIcon.png\">    on the Snap XMP Desktop toolbar. <\/li>\n\n\n\n<li>\n  Select the Report and click <strong>Execute\/Check Report<\/strong> \n  <img loading=\"lazy\" decoding=\"async\" width=\"26\" height=\"26\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/runicon-png-1.png\" class=\"wp-image-5947\" alt=\"RunIcon.png\">\n   on the Reports toolbar.\n<\/li>\n\n\n\n<li>\n  Click the <strong>Filter\/Context<\/strong> button. This opens the <strong>Apply External Filter\/Context<\/strong> dialog.\n<\/li>\n<\/ol>\n\n\n\n<p>\n  In the <strong>Apply External Filter\/Context<\/strong> dialog:\n<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>   Select the <strong>Filter<\/strong> or <strong>Context<\/strong> tab. <\/li>\n\n\n\n<li>   Select the code(s) in the selected variable(s) in the list to&nbsp;apply&nbsp;a&nbsp;filter or context. <\/li>\n\n\n\n<li>   If you have applied a mask to the&nbsp;filter, the&nbsp;filter&nbsp;codes displayed will depend on the mask settings.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"386\" height=\"394\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/applyfiltercontext-png.png\" alt=\"ApplyFilterContext.PNG\" class=\"wp-image-5948\" srcset=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/applyfiltercontext-png.png 386w, https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/applyfiltercontext-png-294x300.png 294w\" sizes=\"(max-width: 386px) 100vw, 386px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>Click OK to apply the filters and contexts to the analysis or report.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"epkb_post_type_1_category":[57,72],"epkb_post_type_1_tag":[],"class_list":["post-5939","epkb_post_type_1","type-epkb_post_type_1","status-publish","hentry","epkb_post_type_1_category-snap-analyses","epkb_post_type_1_category-using-contexts-in-reports"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using external filters and contexts | SnapSurveys<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using external filters and contexts | SnapSurveys\" \/>\n<meta property=\"og:description\" content=\"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 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/\" \/>\n<meta property=\"og:site_name\" content=\"SnapSurveys\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/snapsurveys\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-04T14:45:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/deffiltercontext-png.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@snapsurveys\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/\",\"name\":\"Using external filters and contexts | SnapSurveys\",\"isPartOf\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/deffiltercontext-png.png\",\"datePublished\":\"2021-06-24T09:59:48+00:00\",\"dateModified\":\"2023-10-04T14:45:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/#primaryimage\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/deffiltercontext-png.png\",\"contentUrl\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/deffiltercontext-png.png\",\"width\":386,\"height\":394,\"caption\":\"DefFilterContext.PNG\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Snap XMP Support\",\"item\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp-archive\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Using external filters and contexts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#website\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/\",\"name\":\"Snap XMP Support Hub\",\"description\":\"Support documentation for Snap Surveys products\",\"publisher\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#organization\",\"name\":\"Snap Surveys\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/06\/snap-surveys-logo-fc.svg\",\"contentUrl\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/06\/snap-surveys-logo-fc.svg\",\"width\":867,\"height\":159,\"caption\":\"Snap Surveys\"},\"image\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/snapsurveys\",\"https:\/\/x.com\/snapsurveys\",\"https:\/\/www.linkedin.com\/company\/snapsurveys\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using external filters and contexts | SnapSurveys","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/","og_locale":"en_GB","og_type":"article","og_title":"Using external filters and contexts | SnapSurveys","og_description":"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 [&hellip;]","og_url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/","og_site_name":"SnapSurveys","article_publisher":"https:\/\/www.facebook.com\/snapsurveys","article_modified_time":"2023-10-04T14:45:53+00:00","og_image":[{"url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/deffiltercontext-png.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@snapsurveys","twitter_misc":{"Estimated reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/","url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/","name":"Using external filters and contexts | SnapSurveys","isPartOf":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/#primaryimage"},"image":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/#primaryimage"},"thumbnailUrl":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/deffiltercontext-png.png","datePublished":"2021-06-24T09:59:48+00:00","dateModified":"2023-10-04T14:45:53+00:00","breadcrumb":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/#primaryimage","url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/deffiltercontext-png.png","contentUrl":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2021\/06\/deffiltercontext-png.png","width":386,"height":394,"caption":"DefFilterContext.PNG"},{"@type":"BreadcrumbList","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/using-external-filters-and-contexts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.snapsurveys.com\/support-snapxmp\/"},{"@type":"ListItem","position":2,"name":"Snap XMP Support","item":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp-archive\/"},{"@type":"ListItem","position":3,"name":"Using external filters and contexts"}]},{"@type":"WebSite","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#website","url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/","name":"Snap XMP Support Hub","description":"Support documentation for Snap Surveys products","publisher":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.snapsurveys.com\/support-snapxmp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#organization","name":"Snap Surveys","url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#\/schema\/logo\/image\/","url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/06\/snap-surveys-logo-fc.svg","contentUrl":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/06\/snap-surveys-logo-fc.svg","width":867,"height":159,"caption":"Snap Surveys"},"image":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/snapsurveys","https:\/\/x.com\/snapsurveys","https:\/\/www.linkedin.com\/company\/snapsurveys"]}]}},"_links":{"self":[{"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1\/5939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1"}],"about":[{"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/types\/epkb_post_type_1"}],"author":[{"embeddable":true,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/comments?post=5939"}],"version-history":[{"count":3,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1\/5939\/revisions"}],"predecessor-version":[{"id":10222,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1\/5939\/revisions\/10222"}],"wp:attachment":[{"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/media?parent=5939"}],"wp:term":[{"taxonomy":"epkb_post_type_1_category","embeddable":true,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1_category?post=5939"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1_tag?post=5939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}