<?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 Re: Set Analysis question - AND or OR in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-AND-or-OR/m-p/301180#M500812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data needs to meet all your conditions (it works like AND).&lt;/P&gt;&lt;P&gt;The order of the conditions is not important (in this case at least).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If "someone" has several &lt;CODE class="jive-code"&gt;SASTATUS.SA_STATUS_DESCRIPTION&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;what you get using your set statement is the records matching "Closed" &lt;/P&gt;&lt;P&gt;(and all of your other conditions)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 11:04:37 GMT</pubDate>
    <dc:creator>gandalfgray</dc:creator>
    <dc:date>2011-05-16T11:04:37Z</dc:date>
    <item>
      <title>Set Analysis question - AND or OR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-AND-or-OR/m-p/301179#M500810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart with the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt; count(distinct{$ &amp;lt;SASTATUS.SA_STATUS_DESCRIPTION = {'Closed'},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SATYPE.CATEGORY = {'Domestic'},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PREM.REG_STATUS = {'N'},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PREM.ENER_FLG = {'D'}&amp;gt;}MPRN.MPRN)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;However, there is someone with more than one SA_STATUS_DESCRIPTION (he has one of Combined as well as Closed.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is why is he not excluded? Does he need to meet SOME of the conditions or ALL of the conditions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is searching for people that meet SOME of the conditions, then why are people with more than one &lt;/P&gt;SATYPE.CATEGORY not appearing (for example). &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an order that needs to be applied?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice gratefully received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rachael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 10:28:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question-AND-or-OR/m-p/301179#M500810</guid>
      <dc:creator />
      <dc:date>2011-05-16T10:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question - AND or OR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-AND-or-OR/m-p/301180#M500812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data needs to meet all your conditions (it works like AND).&lt;/P&gt;&lt;P&gt;The order of the conditions is not important (in this case at least).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If "someone" has several &lt;CODE class="jive-code"&gt;SASTATUS.SA_STATUS_DESCRIPTION&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;what you get using your set statement is the records matching "Closed" &lt;/P&gt;&lt;P&gt;(and all of your other conditions)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 11:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question-AND-or-OR/m-p/301180#M500812</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-05-16T11:04:37Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question - AND or OR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-AND-or-OR/m-p/301181#M500817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Try it .i don't know&amp;nbsp; this is correct or not&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;count(distinct{$ &amp;lt;SASTATUS.SA_STATUS_DESCRIPTION = {'Closed'},&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SATYPE.CATEGORY = {'Domestic','International'},&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PREM.REG_STATUS = {'N'},&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PREM.ENER_FLG = {'D'}&amp;gt;}MPRN.MPRN)&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 11:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question-AND-or-OR/m-p/301181#M500817</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2011-05-16T11:26:07Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question - AND or OR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-AND-or-OR/m-p/301182#M500820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;look in the helpfile for Set analysis and here for the operators +, -, * and /. You can combine your selections by adding conditions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 11:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question-AND-or-OR/m-p/301182#M500820</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-05-16T11:42:29Z</dc:date>
    </item>
  </channel>
</rss>

