<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Need to exclude selected values in another filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-exclude-selected-values-in-another-filter/m-p/786595#M278253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a unique situation with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country, CountryGroup&lt;/P&gt;&lt;P&gt;A,&lt;/P&gt;&lt;P&gt;B, BB&lt;/P&gt;&lt;P&gt;C, BB&lt;/P&gt;&lt;P&gt;D,&lt;/P&gt;&lt;P&gt;E, CC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have metrics with Country as the dimension. I would like to display all values for Country excluding those values selected in Country Group. If BB is selected, then countries associated with CC + null() values in Country Group should be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The metric has 6 nested variables as components which makes it overbearing to simply embed set analysis in each variable only to be recomputed for each selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried in expression&lt;/P&gt;&lt;P&gt;1. SUM({&amp;lt;Country = {*} - P({&amp;lt;CountryGroup = {$(= Concat(DISTINCT CountryGroup, ',')) }&amp;gt;} Country)&amp;gt;} variable)&lt;/P&gt;&lt;P&gt;2. SUM({&amp;lt;Country -= P({&amp;lt;CountryGroup = {$(= Concat(DISTINCT CountryGroup, ',')) }}&amp;gt;} Country)&amp;gt;}&amp;nbsp; variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As calculated Dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If (Match([CountryGroup], CONCAT(Distinct CountryGroup, ',')) = 0, Country, null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all to no success. Any thoughts? There can be spaces in the Group field so I also tried with chr(39) around the concat with ',' as the delimiter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 16:13:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-05T16:13:37Z</dc:date>
    <item>
      <title>Need to exclude selected values in another filter</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-exclude-selected-values-in-another-filter/m-p/786595#M278253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a unique situation with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country, CountryGroup&lt;/P&gt;&lt;P&gt;A,&lt;/P&gt;&lt;P&gt;B, BB&lt;/P&gt;&lt;P&gt;C, BB&lt;/P&gt;&lt;P&gt;D,&lt;/P&gt;&lt;P&gt;E, CC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have metrics with Country as the dimension. I would like to display all values for Country excluding those values selected in Country Group. If BB is selected, then countries associated with CC + null() values in Country Group should be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The metric has 6 nested variables as components which makes it overbearing to simply embed set analysis in each variable only to be recomputed for each selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried in expression&lt;/P&gt;&lt;P&gt;1. SUM({&amp;lt;Country = {*} - P({&amp;lt;CountryGroup = {$(= Concat(DISTINCT CountryGroup, ',')) }&amp;gt;} Country)&amp;gt;} variable)&lt;/P&gt;&lt;P&gt;2. SUM({&amp;lt;Country -= P({&amp;lt;CountryGroup = {$(= Concat(DISTINCT CountryGroup, ',')) }}&amp;gt;} Country)&amp;gt;}&amp;nbsp; variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As calculated Dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If (Match([CountryGroup], CONCAT(Distinct CountryGroup, ',')) = 0, Country, null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all to no success. Any thoughts? There can be spaces in the Group field so I also tried with chr(39) around the concat with ',' as the delimiter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 16:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-exclude-selected-values-in-another-filter/m-p/786595#M278253</guid>
      <dc:creator />
      <dc:date>2014-12-05T16:13:37Z</dc:date>
    </item>
  </channel>
</rss>

