<?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: Load where.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-where/m-p/464820#M173628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jagan's suggestion is correct, but it is just the first step towards a solution. You have an additional problem in that IsNull always will return FALSE - a text file can never contain any NULL values. Instead you should use "Where Len(Trim(@47:63))&amp;gt;0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Mar 2013 16:04:51 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-03-21T16:04:51Z</dc:date>
    <item>
      <title>Load where..</title>
      <link>https://community.qlik.com/t5/QlikView/Load-where/m-p/464818#M173626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif;"&gt;I have a load of files in a folder containing information. My code filters through and loads them all (see code below). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;SET qv_path= 'C:\File-'; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;SET qv_filetype= 'DAT'; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;@1:47 as [PAYROLL],&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;@47:63 as [AccountNum]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;FROM $(qv_path)*.$(qv_filetype) (fix, codepage is 1252,header is 1 lines)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;WHERE not IsNull(AccountNum);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I've come across some blank files so i thought i'd write some code to say only import if the account number is not null. This crashes the file and says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;STRONG&gt;Field not found - &amp;lt;AccountNum&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 12:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-where/m-p/464818#M173626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-21T12:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Load where..</title>
      <link>https://community.qlik.com/t5/QlikView/Load-where/m-p/464819#M173627</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;@1:47 as [PAYROLL],&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;@47:63 as [AccountNum]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;FROM $(qv_path)*.$(qv_filetype) (fix, codepage is 1252,header is 1 lines)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;WHERE not IsNull(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;@47:63&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;@47:63 is column name and &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;AccountNum is alias.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;Regards,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 12:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-where/m-p/464819#M173627</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-03-21T12:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load where..</title>
      <link>https://community.qlik.com/t5/QlikView/Load-where/m-p/464820#M173628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jagan's suggestion is correct, but it is just the first step towards a solution. You have an additional problem in that IsNull always will return FALSE - a text file can never contain any NULL values. Instead you should use "Where Len(Trim(@47:63))&amp;gt;0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 16:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-where/m-p/464820#M173628</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-03-21T16:04:51Z</dc:date>
    </item>
  </channel>
</rss>

