<?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: Incremental Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/1012871#M637621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are doing a text comparison in the SQL expression where clause, and the date format is not suitable for such an inequality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the date threshold to&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let V_CYearStart=Date(YearStart(Today()), 'YYYY-MM-DD'); &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the SQL where to&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To_Char(LAST_UPDATE_DATE,'YYYY-MM-DD') &amp;gt; '$(V_CYearStart)';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Or do the date calculation using Oracle SQlL logic and compare dates with dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2016 15:27:59 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-03-17T15:27:59Z</dc:date>
    <item>
      <title>Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/1012870#M637620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to implement incremental load on a transaction table where I am picking up data from ORACLE R12. I am using these part of code, and I have another piece of code where basically I am concatenating with the history table, here is the code-&lt;/P&gt;&lt;P&gt;Let V_StartTime=Now();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let V_CYearStart=Date(YearStart(Today()),'DD-MMM-YYYY');&amp;nbsp; //Current Year Start Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;PA_EXPENDITURE_ITEMS_ALL_HIST:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;From $(vMDRawQVDs)PA_EXPENDITURE_ITEMS_ALL.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LY_MaxDate:&lt;/P&gt;&lt;P&gt;Load max(Date(Date#(LAST_UPDATE_DATE,'DD-MMM-YYYY'),'DD-MMM-YYYY')) AS LYearEnd Resident PA_EXPENDITURE_ITEMS_ALL_HIST;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let V_LYearEnd=Peek('LYearEnd',0,'LY_MaxDate');&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Last Year Start Date&lt;/P&gt;&lt;P&gt;Drop Table LY_MaxDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;PA_EXPENDITURE_ITEMS_ALL:&lt;/P&gt;&lt;P&gt;Sql&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;EXPENDITURE_ITEM_ID,&lt;/P&gt;&lt;P&gt;To_Char(LAST_UPDATE_DATE,'DD-MON-YYYY') LAST_UPDATE_DATE,&lt;/P&gt;&lt;P&gt;ORG_ID&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;PA_EXPENDITURE_ITEMS_ALL&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;To_Char(LAST_UPDATE_DATE,'DD-MON-YYYY')&amp;gt;'$(V_CYearStart)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is that while I am executing these piece of code instead of taking updated data it's taking the full table. Here is a small piece of data which is residing in ORACLE system-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="252"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="64"&gt;EXPENDITURE_ITEM_ID&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="124"&gt;LAST_UPDATE_DATE&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="64"&gt;ORG_ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1307&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;9/26/2011 9:14:45 PM&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1308&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;9/29/2011 9:31:11 AM&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1309&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;9/26/2011 9:14:45 PM&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1310&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;9/26/2011 9:14:45 PM&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1311&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;9/26/2011 9:14:45 PM&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;98&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Please suggest me how can I tackle this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rakesh Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 08:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/1012870#M637620</guid>
      <dc:creator>rakeshpaul</dc:creator>
      <dc:date>2016-03-17T08:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/1012871#M637621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are doing a text comparison in the SQL expression where clause, and the date format is not suitable for such an inequality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the date threshold to&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let V_CYearStart=Date(YearStart(Today()), 'YYYY-MM-DD'); &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the SQL where to&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To_Char(LAST_UPDATE_DATE,'YYYY-MM-DD') &amp;gt; '$(V_CYearStart)';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Or do the date calculation using Oracle SQlL logic and compare dates with dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 15:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/1012871#M637621</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-03-17T15:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/1012872#M637622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response. I will definitely try your solution, by the time I used another approach and it worked for me. I used this piece of code-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Try using this&amp;nbsp; ‘trunc(LAST_UPDATE_DATE)&amp;lt;=trunc(to_date('31-DEC-2015'))' in the query in place of ‘to_char(LAST_UPDATE_DATE,'MM/DD/YYYY')&amp;lt;='12/31/2015’.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I tried hard coded the numbers and it worked and by the time I will make it dynamic instead of hardcoading the numbers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Thanks again!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Rakesh Paul&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 15:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/1012872#M637622</guid>
      <dc:creator>rakeshpaul</dc:creator>
      <dc:date>2016-03-17T15:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/1012873#M637623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tip: use Qlikview Components to do your incremental reloading: &lt;A href="http://qlikviewnotes.blogspot.nl/2012/01/incremental-load-using-qlikview.html" title="http://qlikviewnotes.blogspot.nl/2012/01/incremental-load-using-qlikview.html"&gt;http://qlikviewnotes.blogspot.nl/2012/01/incremental-load-using-qlikview.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 15:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/1012873#M637623</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-17T15:35:40Z</dc:date>
    </item>
  </channel>
</rss>

