<?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: Last execution date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205501#M387528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your explination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but All I want to do is instead of increment data by&amp;nbsp; mac cancelled date I want to use last reload time or last exc time depending on cancelled date, so that I will have more accurate data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2016 19:10:43 GMT</pubDate>
    <dc:creator>dseelam</dc:creator>
    <dc:date>2016-11-02T19:10:43Z</dc:date>
    <item>
      <title>Last execution date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205497#M387524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the process of implementing Incremental loading&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I am using&amp;nbsp; Max (cancelled date) to incremental load, in this process I found a scenario where I can miss some data if I am not reloading this DB every day &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can create a last execution date or time and use it instead of &lt;SPAN style="font-size: 13.3333px;"&gt;Max (cancelled date) so that I can reload my DB every week or so ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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>Wed, 02 Nov 2016 15:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205497#M387524</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2016-11-02T15:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Last execution date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205498#M387525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can reload all data from the last n days instead of doing based on the max cancelled date. This can be done by assigning a value based on Today() - n instead of using Max([cancelled date])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vVar = Date(Today() - 7);&lt;/STRONG&gt;&amp;nbsp; -&amp;gt; For pulling all data which got modified in last 7 days&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 15:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205498#M387525</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-02T15:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Last execution date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205499#M387526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In most of my incremental loads, I pull in more than the minimum amount of data. Like if I have a daily load, I might load the three most recent days of data. I only get in trouble if somehow it fails to load several days in a row, and that's something I pay attention to, plus all my incremental loads do a full reload on a periodic basis. A daily incremental load might do a full reload on a Sunday, say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for a database you want to reload into QlikView weekly, I'd probably pull in, I don't know, the last 30 days of data? I wouldn't try to detect the last execution date and time. I wouldn't try to find the max of any particular timestamp in the data. I'd just load 30 days of data and call it good. Well, in combination with a periodic full reload, like once every month or two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm unclear, though, how you're having a problem using max([Cancelled Date]), assuming that Cancelled Date is a valid field for incrementally loading on. Well, assuming you're loading &amp;gt;= max([Cancelled Date]), anyway. If you don't run for a few days, I'd think that logic would then pick up those few days of missed data. Run weekly, and you'd pick up the last week's data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the last execution date and time, there's a reloadtime() function that might work for you. I believe if you reference it during the script, it's the time of the previous reload, not the current reload, but you'd want to make sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 17:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205499#M387526</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-11-02T17:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Last execution date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205500#M387527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I ma trying to do is to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM APPS."XXHSP_DB_CANCELLED_LINES_V" where&amp;nbsp; CANCELLED_DATE &amp;gt; #$(LastExecTime)# AND CANCELLED_DATE &amp;lt; $(ThisExecTime);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is throwing me an error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142738_Capture.PNG" style="height: 182px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 19:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205500#M387527</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2016-11-02T19:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Last execution date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205501#M387528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your explination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but All I want to do is instead of increment data by&amp;nbsp; mac cancelled date I want to use last reload time or last exc time depending on cancelled date, so that I will have more accurate data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 19:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205501#M387528</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2016-11-02T19:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Last execution date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205502#M387529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't we resolve this in the morning already?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM APPS."XXHSP_DB_CANCELLED_LINES_V" where&amp;nbsp; CANCELLED_DATE &amp;gt; #$(LastExecTime)# AND CANCELLED_DATE &amp;lt; TO_DATE('$(ThisExecTime)', 'MM/DD/YYYY');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where you create &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ThisExecTime like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LET &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;ThisExecTime = Date(Floor(......));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 19:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205502#M387529</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-02T19:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Last execution date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205503#M387530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny last time we used last updated date as max cancelled date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need is to use Last exc time instead of date &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am using Let ThisExecTime = Date(Floor(Now( )));&amp;nbsp; &amp;amp; Let LastExecTime = ThisExecTime;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still facing error after using &lt;/P&gt;&lt;P&gt;FROM APPS."XXHSP_DB_CANCELLED_LINES_V" where&amp;nbsp; CANCELLED_DATE &amp;gt; #$(LastExecTime)# AND CANCELLED_DATE &amp;lt; $ TO_DATE('$(ThisExecTime)','MM/DD/YYYY');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142739_Capture.PNG" style="height: 204px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 19:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205503#M387530</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2016-11-02T19:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Last execution date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205504#M387531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I did not realize that the variable was getting used twice&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;&lt;STRONG&gt;FROM APPS."XXHSP_DB_CANCELLED_LINES_V" where&amp;nbsp; CANCELLED_DATE &amp;gt; &lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TO_DATE('$(ThisExecTime)','MM/DD/YYYY')&lt;/SPAN&gt; AND CANCELLED_DATE &amp;lt; TO_DATE('$(ThisExecTime)','MM/DD/YYYY');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 23:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-execution-date/m-p/1205504#M387531</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-02T23:16:49Z</dc:date>
    </item>
  </channel>
</rss>

