<?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 When I use a where statement  in load script that looks like this: WHERE LineType = '1' AND isnull(OpenOrderQty,0) &amp;lt;&amp;gt; 0; I run in debug mode, I get the following error message: ErrorSource: Unknown source, ErrorMsg: Unknown description SQL SELECT * FROM S in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/When-I-use-a-where-statement-in-load-script-that-looks-like-this/m-p/58743#M781400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use a where statement&amp;nbsp; in load script that looks like this: WHERE LineType = '1' AND isnull(OpenOrderQty,0) &amp;lt;&amp;gt; 0; I run in debug mode, I get the following error message:&lt;/P&gt;&lt;P&gt;ErrorSource: Unknown source, ErrorMsg: Unknown description SQL SELECT * FROM SysproCompanyTurf.dbo.SorDetail WHERE LineType = '1' AND isnull(OpenOrderQty,0) &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only want to load the data where Linetype=1 and where OpenOrderQty&amp;lt;&amp;gt; 0. And I'm a newbie to both Qlikview and SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OpenOrderQty is a "calulated" field in the LOAD statement before the WHERE clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MShipQty + MBackOrderQty as OpenOrderQty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried OpenOrderQty &amp;lt;&amp;gt;0&lt;/P&gt;&lt;P&gt;I've tried OpenOrderQty &amp;lt;&amp;gt;'0'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>When I use a where statement  in load script that looks like this: WHERE LineType = '1' AND isnull(OpenOrderQty,0) &lt;&gt; 0; I run in debug mode, I get the following error message: ErrorSource: Unknown source, ErrorMsg: Unknown description SQL SELECT * FROM S</title>
      <link>https://community.qlik.com/t5/QlikView/When-I-use-a-where-statement-in-load-script-that-looks-like-this/m-p/58743#M781400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use a where statement&amp;nbsp; in load script that looks like this: WHERE LineType = '1' AND isnull(OpenOrderQty,0) &amp;lt;&amp;gt; 0; I run in debug mode, I get the following error message:&lt;/P&gt;&lt;P&gt;ErrorSource: Unknown source, ErrorMsg: Unknown description SQL SELECT * FROM SysproCompanyTurf.dbo.SorDetail WHERE LineType = '1' AND isnull(OpenOrderQty,0) &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only want to load the data where Linetype=1 and where OpenOrderQty&amp;lt;&amp;gt; 0. And I'm a newbie to both Qlikview and SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OpenOrderQty is a "calulated" field in the LOAD statement before the WHERE clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MShipQty + MBackOrderQty as OpenOrderQty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried OpenOrderQty &amp;lt;&amp;gt;0&lt;/P&gt;&lt;P&gt;I've tried OpenOrderQty &amp;lt;&amp;gt;'0'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-I-use-a-where-statement-in-load-script-that-looks-like-this/m-p/58743#M781400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: When I use a where statement  in load script that looks like this: WHERE LineType = '1' AND isnull(OpenOrderQty,0) &lt;&gt; 0; I run in debug mode, I get the following error message: ErrorSource: Unknown source, ErrorMsg: Unknown description SQL SELECT * FR</title>
      <link>https://community.qlik.com/t5/QlikView/When-I-use-a-where-statement-in-load-script-that-looks-like-this/m-p/58744#M781401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&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; font-size: 13px;"&gt;MShipQty + MBackOrderQty &lt;/SPAN&gt;) &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 10:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-I-use-a-where-statement-in-load-script-that-looks-like-this/m-p/58744#M781401</guid>
      <dc:creator>chinnuchinni</dc:creator>
      <dc:date>2018-04-05T10:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: When I use a where statement  in load script that looks like this: WHERE LineType = '1' AND isnull(OpenOrderQty,0) &lt;&gt; 0; I run in debug mode, I get the following error message: ErrorSource: Unknown source, ErrorMsg: Unknown description SQL SELECT * FR</title>
      <link>https://community.qlik.com/t5/QlikView/When-I-use-a-where-statement-in-load-script-that-looks-like-this/m-p/58745#M781402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You Can not use a calculated field in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SQL SELECT * FROM SysproCompanyTurf.dbo.SorDetail WHERE &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LineType = '1' AND &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(IsNull(MShipQty,0) +IsNUll(MBackOrderQty,0))&amp;lt;&amp;gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 14:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-I-use-a-where-statement-in-load-script-that-looks-like-this/m-p/58745#M781402</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-04-06T14:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: When I use a where statement  in load script that looks like this: WHERE LineType = '1' AND isnull(OpenOrderQty,0) &lt;&gt; 0; I run in debug mode, I get the following error message: ErrorSource: Unknown source, ErrorMsg: Unknown description SQL SELECT * FR</title>
      <link>https://community.qlik.com/t5/QlikView/When-I-use-a-where-statement-in-load-script-that-looks-like-this/m-p/58746#M781403</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't use a where clause for a field that is being calculated in the load script.&lt;/P&gt;&lt;P&gt;You will need something like&lt;/P&gt;&lt;P&gt;Where (MShipQty &amp;lt;&amp;gt; 0 and MBackOrderQty &amp;lt;&amp;gt; 0) Or (LEN(TRIM(MShipQty)) &amp;lt;&amp;gt; 0 and LEN(TRIM(MBackOrderQty)) &amp;lt;&amp;gt; 0) AND LineType = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prefer to use Len and Trim over isnull incase of random spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 14:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-I-use-a-where-statement-in-load-script-that-looks-like-this/m-p/58746#M781403</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2018-04-06T14:51:27Z</dc:date>
    </item>
  </channel>
</rss>

