<?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: Combination of AND and OR function in Set Analysis. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combination-of-AND-and-OR-function-in-Set-Analysis/m-p/956000#M968502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anees,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest creating a flag in your script and then using this in your set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;If(A=1 AND B=1 AND C=1 AND(X='NA' OR Y='NA' OR Z='NA'),1) as %Flag&lt;/P&gt;&lt;P&gt;from....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;%Flag={1}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 15:57:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-29T15:57:04Z</dc:date>
    <item>
      <title>Combination of AND and OR function in Set Analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Combination-of-AND-and-OR-function-in-Set-Analysis/m-p/955999#M968501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a sql query as given below :- &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Amount)&lt;/STRONG&gt; from &lt;STRONG&gt;table&lt;/STRONG&gt; where &lt;STRONG&gt;A=1 AND B=1 AND C=1 AND(X=NA OR Y=NA OR Z=NA)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I write this sql query in my SET Analysis expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 07:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combination-of-AND-and-OR-function-in-Set-Analysis/m-p/955999#M968501</guid>
      <dc:creator />
      <dc:date>2015-09-29T07:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Combination of AND and OR function in Set Analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Combination-of-AND-and-OR-function-in-Set-Analysis/m-p/956000#M968502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anees,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest creating a flag in your script and then using this in your set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;If(A=1 AND B=1 AND C=1 AND(X='NA' OR Y='NA' OR Z='NA'),1) as %Flag&lt;/P&gt;&lt;P&gt;from....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;%Flag={1}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 15:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combination-of-AND-and-OR-function-in-Set-Analysis/m-p/956000#M968502</guid>
      <dc:creator />
      <dc:date>2015-09-29T15:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Combination of AND and OR function in Set Analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Combination-of-AND-and-OR-function-in-Set-Analysis/m-p/956001#M968503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Se if this can be used, will be simpler if can be used in your situaiton- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(if(A=1 and B=1 and C=1 and (X='NA' or Y='NA' or Z='NA'),Amount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combination-of-AND-and-OR-function-in-Set-Analysis/m-p/956001#M968503</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-09-29T16:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Combination of AND and OR function in Set Analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Combination-of-AND-and-OR-function-in-Set-Analysis/m-p/956002#M968504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;A={1},B={1},C={1}&amp;gt;*(&amp;lt;X={NA}&amp;gt;+&amp;lt;Y={NA}&amp;gt;+&amp;lt;Z={NA}&amp;gt;)}&amp;nbsp; Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combination-of-AND-and-OR-function-in-Set-Analysis/m-p/956002#M968504</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-29T16:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Combination of AND and OR function in Set Analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Combination-of-AND-and-OR-function-in-Set-Analysis/m-p/956003#M968505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a bunch max &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now it is working as per our requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 05:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combination-of-AND-and-OR-function-in-Set-Analysis/m-p/956003#M968505</guid>
      <dc:creator />
      <dc:date>2015-09-30T05:10:50Z</dc:date>
    </item>
  </channel>
</rss>

