<?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: Script Load - Latest records and date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Load-Latest-records-and-date/m-p/76804#M789852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Corect expresion for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; vTemp variable is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;let vTemp=Peek('MAX_Date',0,'&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;TEMP');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Feb 2018 18:52:11 GMT</pubDate>
    <dc:creator>ElizaF</dc:creator>
    <dc:date>2018-02-08T18:52:11Z</dc:date>
    <item>
      <title>Script Load - Latest records and date</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Load-Latest-records-and-date/m-p/76803#M789850</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 have been struggling for quite a while and scanned the forums to come up with a method how to load the latest information from my qvd files which are created everything morning around 5 am from a database pull. This original qvd file I would not like to ammend as it is used by many applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another application where I would like to load the latest records e.g. max(date(Transact_time, 'DD/MM/YYYY')) or from the previous day. &lt;SPAN style="font-size: 13.3333px;"&gt;max(date(Transact_time, 'DD/MM/YYYY')-1). (my dates are all dates + times stamps) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Date) AS MAX_Date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[file1.qvd]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;let vTemp=MAX_Date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;drop table TEMP;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[file1.qvd]&lt;/P&gt;&lt;P&gt;WHERE Date &amp;gt;= $(vTEMP);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above is an example of a method I have tried with no success as well as trying to Join/resident tables. The outcome I would like is if i have 1 years worth of data in a QVD, I am only targeting 1 day, however could have 1000 different timestamps which are all included in the load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.&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/Script-Load-Latest-records-and-date/m-p/76803#M789850</guid>
      <dc:creator>owhittle</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script Load - Latest records and date</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Load-Latest-records-and-date/m-p/76804#M789852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Corect expresion for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; vTemp variable is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;let vTemp=Peek('MAX_Date',0,'&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;TEMP');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Load-Latest-records-and-date/m-p/76804#M789852</guid>
      <dc:creator>ElizaF</dc:creator>
      <dc:date>2018-02-08T18:52:11Z</dc:date>
    </item>
  </channel>
</rss>

