<?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: Fact incremental load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327116#M842372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your attachment. But in this document it contains only Inserts, updates and delete scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my fact table it will have only inserts on daily basis around 10k records.&lt;/P&gt;&lt;P&gt;Can you help me on this only inserts technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Apr 2017 10:28:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-17T10:28:25Z</dc:date>
    <item>
      <title>Fact incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327114#M842370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone of you explain me about fact table incremental load. I have an idea about for dimension.&lt;/P&gt;&lt;P&gt;But confusion in fact incremental load.&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;Kumar&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/Fact-incremental-load/m-p/1327114#M842370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fact incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327115#M842371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer attached pdf file. Please let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 10:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327115#M842371</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-04-17T10:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fact incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327116#M842372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your attachment. But in this document it contains only Inserts, updates and delete scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my fact table it will have only inserts on daily basis around 10k records.&lt;/P&gt;&lt;P&gt;Can you help me on this only inserts technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 10:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327116#M842372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-17T10:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fact incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327117#M842373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the prompt response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer below sample script for incremental load (INSERT ONLY):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14924270968575651" jivemacro_uid="_14924270968575651"&gt;
&lt;P&gt;//Set lower and upper bound values using variables&lt;/P&gt;
&lt;P&gt;LET vExecTime = UTC();&lt;/P&gt;
&lt;P&gt;LET vLastExecTime = 0;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Get the upper bound value and set it into variable&lt;/P&gt;
&lt;P&gt;LoadTime:&lt;/P&gt;
&lt;P&gt;LOAD MaxString(LastModifiedDate) AS LastModifiedDate&lt;/P&gt;
&lt;P&gt;FROM Table1.qvd(qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vLastExecTime = Peek('LastModifiedDate', 0, 'LoadTime');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Load the history data from QVD file&lt;/P&gt;
&lt;P&gt;Table1:&lt;/P&gt;
&lt;P&gt;LOAD Id,&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;FROM Table1.qvd(qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Load the changed data from base table and append it to result of QVD file load &lt;/P&gt;
&lt;P&gt;Concatenate(Table1)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Incremental:&lt;/P&gt;
&lt;P&gt;LOAD Id,&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;FROM &amp;lt;TableName&amp;gt;&lt;/P&gt;
&lt;P&gt;WHERE LastModifiedDate &amp;gt;= $(vLastExecTime)&lt;/P&gt;
&lt;P&gt;AND&amp;nbsp;&amp;nbsp; LastModifiedDate &amp;lt; $(vExecTime);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have further queries then please share application file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 11:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327117#M842373</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-04-17T11:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fact incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327118#M842374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used script as mentioned above.&lt;/P&gt;&lt;P&gt;As of now, I don't have any qvd in related to my fact. Since it is searching for fact and is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see that screen shot.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/160216_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 12:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327118#M842374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-17T12:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fact incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327119#M842375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to do with following script.&lt;/P&gt;&lt;P&gt;But problem here is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET BeginningThisExecTime = Now();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET LastExecTime&amp;nbsp; = BeginningThisExecTime ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IncrementalExtraction:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;SQL SELECT PrimaryKey, Field1, Field2 FROM Table_X&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND ModificationTime &amp;lt; #$(BeginningThisExecTime)#;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;HistoryData:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT IncrementalExtraction;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM $(SourceFilePath)History.QVD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE NOT EXISTS (PrimaryKey,PrimaryKey);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STORE HistoryData INTO $(SourceFilePath)History.qvd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In above script variable LET BeginningThisExecTime = Now(); shouldn't use.&lt;/P&gt;&lt;P&gt;why because in fact dates will never match with NOW().&lt;/P&gt;&lt;P&gt;If use NOW() variable related will never match in below highlighted.&lt;/P&gt;&lt;P&gt;Here in below script variable(&lt;STRONG&gt;$(LastExecTime)&lt;/STRONG&gt;) always should come from my fact table date only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IncrementalExtraction:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; SQL SELECT PrimaryKey, Field1, Field2 FROM Table_X&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;AND ModificationTime &amp;lt; #$(BeginningThisExecTime)#;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pls help me how to use that corresponding dates form my fact table&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 14:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327119#M842375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-17T14:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fact incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327120#M842376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share some sample data using which you are trying to implement incremental load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 03:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fact-incremental-load/m-p/1327120#M842376</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-04-18T03:54:15Z</dc:date>
    </item>
  </channel>
</rss>

