<?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: USING WHERE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999808#M950085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got that . Thank you very much.. I really appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Dec 2015 17:41:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-11T17:41:20Z</dc:date>
    <item>
      <title>USING WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999802#M950079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii I am again here with a very simple and stupid question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to apply two condition on the data while loading, i used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where division= 10 or division=20&lt;/P&gt;&lt;P&gt;which is working fine but at the same time I have to put condition and where document_type is not equal to 'ABC' and 'DEF'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried doing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where division='10' or division='12' and Document_type &amp;lt;&amp;gt; 'ABC' or &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Document_type &amp;lt;&amp;gt; 'DEF'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will it work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 14:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999802#M950079</guid>
      <dc:creator />
      <dc:date>2015-12-11T14:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: USING WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999803#M950080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and can I use multiple Where statements in same script&lt;/P&gt;&lt;P&gt;if yes then how&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 14:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999803#M950080</guid>
      <dc:creator />
      <dc:date>2015-12-11T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: USING WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999804#M950081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not aware of any reason why you cannot have multiple conditions/fields in your 'where'clause - you may want to use parenthesis to group correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure I understand why you want to ahve multiple where clauses in a single select statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 17:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999804#M950081</guid>
      <dc:creator />
      <dc:date>2015-12-11T17:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: USING WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999805#M950082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where (Division = '10' or Division = '12')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Document &amp;lt;&amp;gt; 'ABC'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Document &amp;lt;&amp;gt; 'DEF'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 17:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999805#M950082</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2015-12-11T17:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: USING WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999806#M950083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Often clearer to use brackets as well and force the evaluation order correclt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where ( division='10' or division='12' ) and ( Document_type &amp;lt;&amp;gt; 'ABC' or Document_type &amp;lt;&amp;gt; 'DEF' )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe use the Match() function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;where Match (division,'10',12') and not Match (Document_type ,'ABC' ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;'DEF')&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 17:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999806#M950083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T17:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: USING WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999807#M950084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be careful with multiple conditions and the relational operators you use to tie them together. The clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;where division='10' or division='12' and Document_type &amp;lt;&amp;gt; 'ABC' or &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;Document_type &amp;lt;&amp;gt; 'DEF'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;will not do what you intend to do, because the combination division='10' and Document_type = 'ABC' will still get loaded. The first and the last parts of your where clause will match...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;To be absolutely sure that the correct parts are combined and evaluated in the right order, use parentheses to group conditions. For example, this clause will act according to your description. It isn't that different from your original:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'courier new', courier;"&gt;where (( division='10' ) or ( division='12' )) and (Document_type &amp;lt;&amp;gt; 'ABC') AND (&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'courier new', courier;"&gt;Document_type &amp;lt;&amp;gt; 'DEF')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;An alternative would be to use the match() function. Makes things a bit easier. For example, the previous WHERE is equal to the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;where Match(division, '10', '12') and Not Match(Document_type, 'ABC', &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'courier new', courier;"&gt; 'DEF')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Peter&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 17:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999807#M950084</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-11T17:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: USING WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999808#M950085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got that . Thank you very much.. I really appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 17:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/USING-WHERE/m-p/999808#M950085</guid>
      <dc:creator />
      <dc:date>2015-12-11T17:41:20Z</dc:date>
    </item>
  </channel>
</rss>

