<?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 error : Field not found in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487973#M1134853</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;TableA:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,field1A, field2A, Date as DateA&lt;/P&gt;&lt;P&gt;from fileA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmpMaxdate:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(max(DateA)) AS MaxDate&lt;/P&gt;&lt;P&gt;RESIDENT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxDate = peek('MaxDate', 0, 'tmpMaxdate');&lt;/P&gt;&lt;P&gt;DROP TABLE tmpMaxdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;Load field1B, field2B, Date as DateB&lt;/P&gt;&lt;P&gt;from fileB where Date &amp;gt; Date(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Oct 2013 06:43:45 GMT</pubDate>
    <dc:creator>struniger</dc:creator>
    <dc:date>2013-10-18T06:43:45Z</dc:date>
    <item>
      <title>Load error : Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487967#M1134847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I have 2 tables, lets say its table A and B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in table A, I have a Date field which I loaded, and I renamed it to DateA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load field1A, field2A, Date as DateA&lt;/P&gt;&lt;P&gt;from fileA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in table B, I need to load data, it has Date field as well but I want the Date in B to be greater (later) than DateA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load field1B, field2B, Date as DateB&lt;/P&gt;&lt;P&gt;from fileB&lt;/P&gt;&lt;P&gt;where DateB &amp;gt; DateA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I am getting field not found error (DateA)?&lt;/P&gt;&lt;P&gt;where exists seem to work when i compared field2A and field2B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 02:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487967#M1134847</guid>
      <dc:creator />
      <dc:date>2013-10-18T02:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load error : Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487968#M1134848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rinaldo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there only one record present in Table A or do you wish to compare only the Max(DateA) with Table B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wish to compare it with the Max(DateA) use peek function to retrieve the date in variable and use it to compare. Like&lt;/P&gt;&lt;P&gt;TableA: Load&lt;/P&gt;&lt;P&gt;field1A, field2A, Date as DateA &lt;/P&gt;&lt;P&gt;from fileA Asc Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMaxDateA = Peek(DateA);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;Load field1B, field2B, Date as DateB&lt;/P&gt;&lt;P&gt;from fileB where Date &amp;gt; Date(vMaxDateA);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 04:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487968#M1134848</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2013-10-18T04:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load error : Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487969#M1134849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply, just when I am in front of my computer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have actually more than one records in table A, each may contain different dates&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, 18 Oct 2013 04:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487969#M1134849</guid>
      <dc:creator />
      <dc:date>2013-10-18T04:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Load error : Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487970#M1134850</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 script for this we need a column to join both the tables, I assumed that ID is a common field in the two tables, replace ID with your join column name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;field1A, field2A, Date as DateA&lt;/P&gt;&lt;P&gt;from fileA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2Temp: &lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;field1B, field2B, Date as DateB&lt;/P&gt;&lt;P&gt;from fileB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Table2Temp)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateA AS TempDateA&lt;/P&gt;&lt;P&gt;RESIDENT Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field1B,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field2B,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateB&lt;/P&gt;&lt;P&gt;FROM Table2Temp&lt;/P&gt;&lt;P&gt;WHERE DateB &amp;gt; TempDateA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Table2Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 04:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487970#M1134850</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-18T04:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Load error : Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487971#M1134851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan, I tried your script&lt;/P&gt;&lt;P&gt;but when loading the final table (where the dates were being compared), it loaded continuously non stop&lt;/P&gt;&lt;P&gt;I should be expecting around 5000 results or less, but it's still going even up to the millions, I had to abort it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 06:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487971#M1134851</guid>
      <dc:creator />
      <dc:date>2013-10-18T06:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Load error : Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487972#M1134852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you attach some sample data?&amp;nbsp; It would be easier to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 06:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487972#M1134852</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-18T06:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load error : Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487973#M1134853</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;TableA:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,field1A, field2A, Date as DateA&lt;/P&gt;&lt;P&gt;from fileA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmpMaxdate:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(max(DateA)) AS MaxDate&lt;/P&gt;&lt;P&gt;RESIDENT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxDate = peek('MaxDate', 0, 'tmpMaxdate');&lt;/P&gt;&lt;P&gt;DROP TABLE tmpMaxdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;Load field1B, field2B, Date as DateB&lt;/P&gt;&lt;P&gt;from fileB where Date &amp;gt; Date(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 06:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487973#M1134853</guid>
      <dc:creator>struniger</dc:creator>
      <dc:date>2013-10-18T06:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Load error : Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487974#M1134854</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;Is there any common fields in both tables, if there are common (join) fields this won't take much time, can you attached the sample script or file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 07:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487974#M1134854</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-18T07:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load error : Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487975#M1134855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I am sorry for the late reply, we had bushfire in the surrounding area and had smoke problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagan, actually it was an error on my part, which I fixed shortly after I posted the question. I included the wrong field. It is now working properly, and I used your approach Jagan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, there is an ID that connects the two tables. I had to modify your approach here and there but it is generally the same.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you very much to everyone that contributed, it allowed me to learn more about Qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aldo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 04:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-Field-not-found/m-p/487975#M1134855</guid>
      <dc:creator />
      <dc:date>2013-10-23T04:58:27Z</dc:date>
    </item>
  </channel>
</rss>

