<?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 RESIDENT WHERE AND OR in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RESIDENT-WHERE-AND-OR/m-p/144705#M23556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your field name, it may be case sensitive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2009 19:51:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-22T19:51:58Z</dc:date>
    <item>
      <title>RESIDENT WHERE AND OR</title>
      <link>https://community.qlik.com/t5/QlikView/RESIDENT-WHERE-AND-OR/m-p/144703#M23554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a resident load with WHERE Status = 'Open' and Type = '1' OR '2'&lt;/P&gt;&lt;P&gt;The result isnt't correct.&lt;/P&gt;&lt;P&gt;WHERE WHERE Status = 'Open' works&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;WHERE Type = '1' OR '2' works&lt;/P&gt;&lt;P&gt;Any ideas what the problem could be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aloah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 16:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RESIDENT-WHERE-AND-OR/m-p/144703#M23554</guid>
      <dc:creator />
      <dc:date>2009-05-22T16:18:24Z</dc:date>
    </item>
    <item>
      <title>RESIDENT WHERE AND OR</title>
      <link>https://community.qlik.com/t5/QlikView/RESIDENT-WHERE-AND-OR/m-p/144704#M23555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aloah,&lt;/P&gt;&lt;P&gt;I don't see any problem in your current statement, but maybe you can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;WHERE (Status = 'Open') AND (Type = '1' OR Type = '2')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 16:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RESIDENT-WHERE-AND-OR/m-p/144704#M23555</guid>
      <dc:creator />
      <dc:date>2009-05-22T16:24:01Z</dc:date>
    </item>
    <item>
      <title>RESIDENT WHERE AND OR</title>
      <link>https://community.qlik.com/t5/QlikView/RESIDENT-WHERE-AND-OR/m-p/144705#M23556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your field name, it may be case sensitive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 19:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RESIDENT-WHERE-AND-OR/m-p/144705#M23556</guid>
      <dc:creator />
      <dc:date>2009-05-22T19:51:58Z</dc:date>
    </item>
    <item>
      <title>RESIDENT WHERE AND OR</title>
      <link>https://community.qlik.com/t5/QlikView/RESIDENT-WHERE-AND-OR/m-p/144706#M23557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you SURE that Type = '1' OR '2' works? I didn't think that was a valid format for QlikView, or more accurately, I wouldn't expect it to do what you say it's doing.&lt;/P&gt;&lt;P&gt;I would expect it to do this:&lt;/P&gt;&lt;P&gt;(Type = '1') OR ('2')&lt;/P&gt;&lt;P&gt;The string '2' does not equal FALSE (0), so I'd expect it to be true. Therefore the whole expression should be true, and I would expect you to retrieve ALL rows.&lt;/P&gt;&lt;P&gt;I would expect the same problem with the full expression. AND is generally evaluated before OR, so once again, I would expect you to retrieve all rows.&lt;/P&gt;&lt;P&gt;The QlikView format for this would be this:&lt;/P&gt;&lt;P&gt;WHERE STATUS = 'Open' and Match(Type,'1','2')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2009 00:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RESIDENT-WHERE-AND-OR/m-p/144706#M23557</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-23T00:17:40Z</dc:date>
    </item>
  </channel>
</rss>

