<?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 with AND clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827273#M667691</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;you can take:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;WHERE [Actual Volume] &amp;gt;='0' AND NOT ([Actual Volume] = '0' AND [Forecast Volume] = '0')&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; 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: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;which is the same as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; 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: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;WHERE [Actual Volume] &amp;gt;='0' AND ([Actual Volume] &amp;lt;&amp;gt; '0' OR [Forecast Volume] &amp;lt;&amp;gt; '0')&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; 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: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Christian&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2014 15:52:00 GMT</pubDate>
    <dc:creator>cwolf</dc:creator>
    <dc:date>2014-12-15T15:52:00Z</dc:date>
    <item>
      <title>Using WHERE with AND clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827271#M667689</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 am trying to use a WHERE clause with an AND clause to achieve the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual Volume should only be loaded if &amp;gt;= 0.&lt;/P&gt;&lt;P&gt;No data should be loaded if Forecast and Actual both = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following but it seems to eliminate records where Forecast = 0 but Actual does not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE [Actual Volume] &amp;gt;='0' AND ([Actual Volume] &amp;lt;&amp;gt; '0' AND [Forecast Volume]&amp;lt;&amp;gt; '0')&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if I'm perhaps using AND incorrectly or misplacing my ().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 15:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827271#M667689</guid>
      <dc:creator />
      <dc:date>2014-12-15T15:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using WHERE with AND clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827272#M667690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use for Actual data to be load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * From Source&lt;/P&gt;&lt;P&gt;WHERE [Actual Volume] &amp;gt;= 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * from Source&lt;/P&gt;&lt;P&gt;Where ([Actual Volume] &amp;lt;&amp;gt; 0 AND [Forecast Volume]&amp;lt;&amp;gt; 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 15:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827272#M667690</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-15T15:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using WHERE with AND clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827273#M667691</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;you can take:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;WHERE [Actual Volume] &amp;gt;='0' AND NOT ([Actual Volume] = '0' AND [Forecast Volume] = '0')&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; 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: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;which is the same as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; 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: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;WHERE [Actual Volume] &amp;gt;='0' AND ([Actual Volume] &amp;lt;&amp;gt; '0' OR [Forecast Volume] &amp;lt;&amp;gt; '0')&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; 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: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Christian&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 15:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827273#M667691</guid>
      <dc:creator>cwolf</dc:creator>
      <dc:date>2014-12-15T15:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using WHERE with AND clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827274#M667692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;WHERE [Actual Volume] &amp;gt;='0' AND ([Actual Volume] &amp;lt;&amp;gt; '0'&lt;/EM&gt; is a contradiction. The first part checks for greater or &lt;STRONG&gt;equal&lt;/STRONG&gt; to 0 and the secend part checks for &lt;STRONG&gt;not equal&lt;/STRONG&gt; to 0. If the condition is 0 your AND cannot resolve itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 16:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827274#M667692</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2014-12-15T16:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using WHERE with AND clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827275#M667693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try different way also by this expression load where condition in two different table and then concatenate those&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MainTable:&lt;/P&gt;&lt;P&gt;Load * From QVD&lt;/P&gt;&lt;P&gt;Where [Actual Volume] &amp;lt;&amp;gt; 0 AND [Forecast Volume]&amp;lt;&amp;gt; 0&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Concatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Load * From QVD&lt;/P&gt;&lt;P&gt;Where [Actual Volume] &amp;gt;=0&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Anand&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 20:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827275#M667693</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-15T20:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using WHERE with AND clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827276#M667694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Christian!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE [Actual Volume] &amp;gt;='0' AND ([Actual Volume] &amp;lt;&amp;gt; '0' OR [Forecast Volume] &amp;lt;&amp;gt; '0')&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;; seems to work as anticipated &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 11:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-WHERE-with-AND-clause/m-p/827276#M667694</guid>
      <dc:creator />
      <dc:date>2014-12-17T11:31:11Z</dc:date>
    </item>
  </channel>
</rss>

