<?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: Date is null for Incremental Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-is-null-for-Incremental-Load/m-p/1218831#M854374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This part is incorrect. It would return a 0 or -1.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;date(max(DATE1) OR max(DATE2),'YYYY-MM-DD hh:mm:ss')&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;What you want is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;date(rangemax(DATE1, DATE2),'YYYY-MM-DD hh:mm:ss')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;date(alt(DATE1, DATE2),'YYYY-MM-DD hh:mm:ss')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2017 17:08:23 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2017-02-17T17:08:23Z</dc:date>
    <item>
      <title>Date is null for Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Date-is-null-for-Incremental-Load/m-p/1218830#M854373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I was writinng the code for handling null date becasue in our db there is some date for DATE1 which i&lt;STRONG&gt;s null&lt;/STRONG&gt; and DATE2 which is &lt;STRONG&gt;not null.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;for overriding this issue I was writing the code without if condition.I wanted to know from our qlikTeam will it work properly or is there any other thing which i need to have to done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;date(max(DATE1) OR max(DATE2),'YYYY-MM-DD hh:mm:ss') as PEAK_DT FROM &lt;/P&gt;&lt;P&gt;$(vQvdPaths)(qvd); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET LastExecTime=Peek('PEAK_DT',-1,'A');&lt;/P&gt;&lt;P&gt;DROP TABLE A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/space/2003" target="_blank"&gt;New to QlikView&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/70029" target="_blank"&gt;celambarasan&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/183735" target="_blank"&gt;qlikrajan&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/228361" target="_blank"&gt;surendraj&lt;/A&gt;‌&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/Date-is-null-for-Incremental-Load/m-p/1218830#M854373</guid>
      <dc:creator>Karim_Khan</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date is null for Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Date-is-null-for-Incremental-Load/m-p/1218831#M854374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This part is incorrect. It would return a 0 or -1.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;date(max(DATE1) OR max(DATE2),'YYYY-MM-DD hh:mm:ss')&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;What you want is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;date(rangemax(DATE1, DATE2),'YYYY-MM-DD hh:mm:ss')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;date(alt(DATE1, DATE2),'YYYY-MM-DD hh:mm:ss')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 17:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-is-null-for-Incremental-Load/m-p/1218831#M854374</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-02-17T17:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date is null for Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Date-is-null-for-Incremental-Load/m-p/1218832#M854375</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;You need to create 2 variables to keep these 2 date values.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;A:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;date(max(DATE1) ,'YYYY-MM-DD hh:mm:ss') as PEAK_DT1 &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,date(max(DATE2) ,'YYYY-MM-DD hh:mm:ss') as PEAK_DT2&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;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(vQvdPaths)(qvd);&lt;/P&gt;&lt;P&gt;&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;LET LastExecTimeDate1=Peek('PEAK_DT1',-1,'A');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET LastExecTimeDate2=Peek('PEAK_DT2',-1,'A');&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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&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;DROP TABLE A;&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;And in your Incremental load part these 2 date variables has to be used for comparison against the corresponding date fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 07:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-is-null-for-Incremental-Load/m-p/1218832#M854375</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2017-02-20T07:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date is null for Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Date-is-null-for-Incremental-Load/m-p/1218833#M854376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If I will go with below logic what will be the issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;date(ALT(max(DATE1),max(&lt;SPAN style="font-size: 13.3333px;"&gt;DATE2&lt;/SPAN&gt;),'YYYY-MM-DD hh:mm:ss')) as PEAK_DT FROM &lt;/P&gt;&lt;P&gt;$(vQvdPaths)(qvd); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET LastExecTime=Peek('PEAK_DT',-1,'A');&lt;/P&gt;&lt;P&gt;DROP TABLE A;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 07:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-is-null-for-Incremental-Load/m-p/1218833#M854376</guid>
      <dc:creator>Karim_Khan</dc:creator>
      <dc:date>2017-02-20T07:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date is null for Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Date-is-null-for-Incremental-Load/m-p/1218834#M854377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My assumption was the records with Date1 will have different data set and Date with DATE2 will have a different data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in that case lets take the below example data&lt;/P&gt;&lt;P&gt;ID, DATE1, DATE2&lt;/P&gt;&lt;P&gt;1, 02/19/2017, NULL&lt;/P&gt;&lt;P&gt;2, NULL, &lt;SPAN style="font-size: 13.3333px;"&gt;02/20/2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Last Execution time will be 02/20/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the next day processing&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ID, DATE1, DATE2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, 02/19/2017, NULL&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2, NULL, &lt;SPAN style="font-size: 13.3333px;"&gt;02/20/2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3, &lt;SPAN style="font-size: 13.3333px;"&gt;02/20/2017&lt;/SPAN&gt;, NULL//New record -- This wont be loaded because that logic considers it as already loaded record.&lt;/P&gt;&lt;P&gt;4, NULL, 02/21/2017//New record -- This will be loaded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this scenario is possible then there will be miss of some records. If that is not possible then go ahead with the solution that you mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 08:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-is-null-for-Incremental-Load/m-p/1218834#M854377</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2017-02-20T08:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date is null for Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Date-is-null-for-Incremental-Load/m-p/1218835#M854378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think ur approach is perfect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 08:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-is-null-for-Incremental-Load/m-p/1218835#M854378</guid>
      <dc:creator>Karim_Khan</dc:creator>
      <dc:date>2017-02-20T08:45:03Z</dc:date>
    </item>
  </channel>
</rss>

