{"id":3286,"date":"2020-11-11T11:04:49","date_gmt":"2020-11-11T11:04:49","guid":{"rendered":"https:\/\/www.snapsurveys.com\/support-snapxmp\/?post_type=epkb_post_type_1&#038;p=3286"},"modified":"2022-01-17T16:06:54","modified_gmt":"2022-01-17T16:06:54","slug":"testing-and-running-a-report-using-the-global-context","status":"publish","type":"epkb_post_type_1","link":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/","title":{"rendered":"Testing and running a report using the global context"},"content":{"rendered":"\n<p>\n  When running reports with tables and charts, you often want to filter your results to a certain sub-group of respondents. For example, you may wish to filter your results to only show respondents who visited a certain cafe. Context allows you to add a global filter to your tables and charts. You can edit the global filter when you need to run the report for different subsets of respondents. This can be used to test your report.\n<\/p>\n\n\n\n<p>\n  The Crocodile Rock Cafe survey is used as an example.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setting the global context<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>\n  Select <strong>File|Context Values<\/strong> to open the <strong>Context Values<\/strong> dialog.\n<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"328\" height=\"245\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent11-png-1.png\" alt=\"Context Values showing the global context\" class=\"wp-image-3287\" srcset=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent11-png-1.png 328w, https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent11-png-1-300x224.png 300w\" sizes=\"(max-width: 328px) 100vw, 328px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>\n  Double click the global context value to open it. This allows you to set the context to a specific value.<strong> Note:<\/strong> The global context will always be present in Snap \u2013 it is not possible to delete it\n<\/li><li>\n  In the Variable column, enter the variable that is used for the context. In the example, this is set to Q0 (the location).\n<\/li><li>\n   In the Value column, enter the code value. In the example, this is set to 1, which sets the current context to Bristol.\n<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"494\" height=\"245\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/usingcontexts7-png.png\" alt=\"Global context values\" class=\"wp-image-3288\" srcset=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/usingcontexts7-png.png 494w, https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/usingcontexts7-png-300x149.png 300w\" sizes=\"(max-width: 494px) 100vw, 494px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\"><li>\n  Click \n  <img decoding=\"async\" width=\"26\" height=\"26\" class=\"wp-image-3289\" alt=\"SaveIcon.png\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/saveicon-png-4.png\">\n   to save the context.\n<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Testing the report<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>\n  Open the Reports window \n  <img loading=\"lazy\" decoding=\"async\" width=\"35\" height=\"39\" class=\"wp-image-3290\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/word-image.png\">\n   and double click on the report to open it.\n<\/li><li>\n  To edit the data set that this report uses, apply a filter to the entire report. Adding a Filter to the report and leaving the Context blank, filters the data on the current global context. In this example, the filter<strong>Q0=Q0@Context<\/strong> is used to filter the data on Q0 (the location) set as the global context.\n<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"171\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/reportglobalcontext-png.png\" alt=\"Report details showing a context filter\" class=\"wp-image-3291\" srcset=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/reportglobalcontext-png.png 500w, https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/reportglobalcontext-png-300x103.png 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>\n  Click \n  <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"14\" class=\"wp-image-3292\" alt=\"Run button\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/run-button-2.png\">\n   to run the report.\n<\/li><li>\n  Click <strong>Preview<\/strong> to provide an on-screen preview of your report. It should show a single report for Bristol. Check through your report to confirm that it behaves as you expect.\n<\/li><li>\n  Click <strong>Close<\/strong> to close the preview window.\n<\/li><li>\n  Repeat for all the code values of the global context variable. \n<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>When running reports with tables and charts, you often want to filter your results to a certain sub-group of respondents. For example, you may wish to filter your results to only show respondents who visited a certain cafe. Context allows you to add a global filter to your tables and charts. You can edit the [&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":[72],"epkb_post_type_1_tag":[],"class_list":["post-3286","epkb_post_type_1","type-epkb_post_type_1","status-publish","hentry","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>Testing and running a report using the global context | 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\/testing-and-running-a-report-using-the-global-context\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Testing and running a report using the global context | SnapSurveys\" \/>\n<meta property=\"og:description\" content=\"When running reports with tables and charts, you often want to filter your results to a certain sub-group of respondents. For example, you may wish to filter your results to only show respondents who visited a certain cafe. Context allows you to add a global filter to your tables and charts. You can edit the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/\" \/>\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=\"2022-01-17T16:06:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent11-png-1.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=\"2 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\/testing-and-running-a-report-using-the-global-context\/\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/\",\"name\":\"Testing and running a report using the global context | SnapSurveys\",\"isPartOf\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent11-png-1.png\",\"datePublished\":\"2020-11-11T11:04:49+00:00\",\"dateModified\":\"2022-01-17T16:06:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/#primaryimage\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent11-png-1.png\",\"contentUrl\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent11-png-1.png\",\"width\":328,\"height\":245,\"caption\":\"Context Values showing the global context\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/#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\":\"Testing and running a report using the global context\"}]},{\"@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":"Testing and running a report using the global context | 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\/testing-and-running-a-report-using-the-global-context\/","og_locale":"en_GB","og_type":"article","og_title":"Testing and running a report using the global context | SnapSurveys","og_description":"When running reports with tables and charts, you often want to filter your results to a certain sub-group of respondents. For example, you may wish to filter your results to only show respondents who visited a certain cafe. Context allows you to add a global filter to your tables and charts. You can edit the [&hellip;]","og_url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/","og_site_name":"SnapSurveys","article_publisher":"https:\/\/www.facebook.com\/snapsurveys","article_modified_time":"2022-01-17T16:06:54+00:00","og_image":[{"url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent11-png-1.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@snapsurveys","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/","url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/","name":"Testing and running a report using the global context | SnapSurveys","isPartOf":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/#primaryimage"},"image":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/#primaryimage"},"thumbnailUrl":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent11-png-1.png","datePublished":"2020-11-11T11:04:49+00:00","dateModified":"2022-01-17T16:06:54+00:00","breadcrumb":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/#primaryimage","url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent11-png-1.png","contentUrl":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent11-png-1.png","width":328,"height":245,"caption":"Context Values showing the global context"},{"@type":"BreadcrumbList","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/testing-and-running-a-report-using-the-global-context\/#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":"Testing and running a report using the global context"}]},{"@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\/3286","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=3286"}],"version-history":[{"count":2,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1\/3286\/revisions"}],"predecessor-version":[{"id":5010,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1\/3286\/revisions\/5010"}],"wp:attachment":[{"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/media?parent=3286"}],"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=3286"},{"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=3286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}