<?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 Set analysis statement with ORs and ANDs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-statement-with-ORs-and-ANDs/m-p/202597#M60229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I need to write the following as a Set Statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(RECORD_TYPE = 'BUYER' AND DATE = 'XX')&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;(VAR1 = 'XX' OR VAR2='YY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in English, I want to create a set where you are a BUYER on a specific DATE and are either XX in variable 1 or YY on variable 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this should be simple however I can't get the correct syntax as the documentation is not very clear.&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;Gareth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2011 10:15:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-07T10:15:38Z</dc:date>
    <item>
      <title>Set analysis statement with ORs and ANDs</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-statement-with-ORs-and-ANDs/m-p/202597#M60229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I need to write the following as a Set Statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(RECORD_TYPE = 'BUYER' AND DATE = 'XX')&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;(VAR1 = 'XX' OR VAR2='YY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in English, I want to create a set where you are a BUYER on a specific DATE and are either XX in variable 1 or YY on variable 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this should be simple however I can't get the correct syntax as the documentation is not very clear.&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;Gareth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 10:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-statement-with-ORs-and-ANDs/m-p/202597#M60229</guid>
      <dc:creator />
      <dc:date>2011-04-07T10:15:38Z</dc:date>
    </item>
    <item>
      <title>Set analysis statement with ORs and ANDs</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-statement-with-ORs-and-ANDs/m-p/202598#M60230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the first is not that difficult . . .but the second part I don't know . . . interesting . . .&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;sum ( {&amp;lt; RECORD_TYPE = {'BUYER'}, DATE ={'XX'}&amp;gt;} if(VAR1 = 'XX' or VAR2 = 'YY', VALUE))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 10:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-statement-with-ORs-and-ANDs/m-p/202598#M60230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-07T10:29:59Z</dc:date>
    </item>
    <item>
      <title>Set analysis statement with ORs and ANDs</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-statement-with-ORs-and-ANDs/m-p/202599#M60231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe, depending on the case, you would have to evaluate the variable:&lt;/P&gt;&lt;P&gt;sum ( {&amp;lt; RECORD_TYPE = {'BUYER'}, DATE ={'XX'}&amp;gt;} if($(VAR1) = 'XX' or $(VAR2) = 'YY', VALUE))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 23:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-statement-with-ORs-and-ANDs/m-p/202599#M60231</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-18T23:05:12Z</dc:date>
    </item>
  </channel>
</rss>

