<?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: where clause not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879112#M306888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from the wizard loads fine, i edited the automatically generated script and added the where clause which gives the table not found error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2015 07:54:29 GMT</pubDate>
    <dc:creator>vvvvvvizard</dc:creator>
    <dc:date>2015-06-23T07:54:29Z</dc:date>
    <item>
      <title>where clause not working</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879106#M306882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a list of excel files 201401.xlsx,201402.xlsx,201403.xlsx ..... until 201505.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the first loads works perfect where i wna load all data before 201404 including 201404&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;FROM &lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Export)&lt;/P&gt;&lt;P&gt;Where&amp;nbsp; SubField(Filename(),'.',1)&amp;lt;=201504;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the second load gives&amp;nbsp; alot of table not found error&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM &lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;(ooxml, embedded labels, table is Export)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Where&amp;nbsp; SubField(Filename(),'.',1)&amp;gt;201504;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;This works fine&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;so if i changed it to load 201505 file only i get no table found errors, and the field names in the previous load is a copy and past to the ones used here , so this tells me its the where clause and not the fields missing&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM &lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;(ooxml, embedded labels, table is Export);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 07:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879106#M306882</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-06-23T07:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: where clause not working</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879107#M306883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you double checked that the Excel file actually contains a sheet called Export and can be loaded using the script Editor wizard?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 07:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879107#M306883</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-23T07:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: where clause not working</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879108#M306884</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;I think&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;Export sheet is not available in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;201505.xlsx. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Please confirm that&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 07:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879108#M306884</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-06-23T07:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: where clause not working</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879109#M306885</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 below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date#(SubField(Filename(),'.',1),'YYYYMM')&amp;gt;Date#(201504,'YYYYMM');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 07:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879109#M306885</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-23T07:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: where clause not working</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879110#M306886</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;It sound to me as the first table has same name as the second table and if this is the case the second table with concatenate with the first table. usually this is the cause of table not found error. What you might want to do is enter NOCONCATENATE between the 2 tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 07:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879110#M306886</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-06-23T07:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: where clause not working</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879111#M306887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A second comment, if you want to exclude the files from being loaded, I would use a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each File in Filelist('C:\Users\E936682\Desktop\Report_Builder_Data\ADDM\*.xlsx')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to iterate over all files and check the filename in a IF...THEN...LOAD.. ENDIF statement, instead of doing the filename check on a per record base.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 07:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879111#M306887</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-23T07:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: where clause not working</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879112#M306888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from the wizard loads fine, i edited the automatically generated script and added the where clause which gives the table not found error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 07:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879112#M306888</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-06-23T07:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: where clause not working</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879113#M306889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the second table has a few more fields than the first table , i will outer join the two tables once i get the second table to load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 07:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879113#M306889</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-06-23T07:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: where clause not working</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879114#M306890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know how to , some guidance please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each file in FileList('C:\Users\E936682\Desktop\Report_Builder_Data\ADDM\*');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Right(SubField($(file),6),'.',1)&amp;lt;=201504, &lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Annotationapm,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#(SubField(Filename(),'.',1),'YYYYMM'),'MMM-YY') as the_date&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(file)]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Export);)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT file;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879114#M306890</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-06-23T09:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: where clause not working</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879115#M306891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each file in FileList('C:\Users\E936682\Desktop\Report_Builder_Data\ADDM\*')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SubField( file,'.',1) &amp;lt;= 201504 THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Annotationapm,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#(SubField(Filename(),'.',1),'YYYYMM'),'MMM-YY') as the_date&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(file)]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Export);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also suggest running the script in the debugger first to check the values of variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879115#M306891</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-23T09:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: where clause not working</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879116#M306892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks , didnt know about the debugger , tested it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-not-working/m-p/879116#M306892</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-06-23T09:47:11Z</dc:date>
    </item>
  </channel>
</rss>

