<?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 loading with two fact tables?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-loading-with-two-fact-tables/m-p/318362#M584790</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 think with some modifications to original fileds that you have and taking care in the date format you can try the below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;//First create a snapshot of 30 days data and store in QVD, this step is one time only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Last30daysTranData:&lt;/P&gt;&lt;P&gt;//Load time_id, ctry,prod from table table1 where time_id&amp;gt;=Today()-30;&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;//Store Last30daysTranData into Last30daysTranData.QVD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Please uncomment the above code and comment everyhting else to create a snapshot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Once you created the above snapshot, load data from QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//any data beyond 30 days will not be loaded&lt;/P&gt;&lt;P&gt;Last30daysTranData:&lt;/P&gt;&lt;P&gt;Load * from Last30daysTranData.QVD where time_id&amp;gt;=Today()-30;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//this will append incremental data which is not there in above QVD&lt;/P&gt;&lt;P&gt;Concatenate (Last30daysTranData)&lt;/P&gt;&lt;P&gt;Load time_id, ctry,prod from table databasetable where time_id&amp;gt;=Today()-30;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store Last30daysTranData into Last30daysTranData.QVD; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2011 06:37:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-02T06:37:32Z</dc:date>
    <item>
      <title>Incremental loading with two fact tables??</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-loading-with-two-fact-tables/m-p/318360#M584788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my dashboard i have two fact tables... say FACT1 and FACT2.. also there are other dimentions too...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both fact table there is time_id by which we can restrict the data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is... first i want to load previous 30 days of data to start with and then data from both fact table should be incremented every 4 hour in 30 days data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to make qvd file and store them such that when they are incremented/refreshed successfully i can use them in my dashboard/application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pleas help me out to solve this problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 04:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-loading-with-two-fact-tables/m-p/318360#M584788</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2011-09-02T04:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental loading with two fact tables??</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-loading-with-two-fact-tables/m-p/318361#M584789</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;Does it mean you always just need last 30 days data in your dashboard and then in QVD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 06:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-loading-with-two-fact-tables/m-p/318361#M584789</guid>
      <dc:creator />
      <dc:date>2011-09-02T06:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental loading with two fact tables??</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-loading-with-two-fact-tables/m-p/318362#M584790</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 think with some modifications to original fileds that you have and taking care in the date format you can try the below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;//First create a snapshot of 30 days data and store in QVD, this step is one time only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Last30daysTranData:&lt;/P&gt;&lt;P&gt;//Load time_id, ctry,prod from table table1 where time_id&amp;gt;=Today()-30;&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;//Store Last30daysTranData into Last30daysTranData.QVD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Please uncomment the above code and comment everyhting else to create a snapshot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Once you created the above snapshot, load data from QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//any data beyond 30 days will not be loaded&lt;/P&gt;&lt;P&gt;Last30daysTranData:&lt;/P&gt;&lt;P&gt;Load * from Last30daysTranData.QVD where time_id&amp;gt;=Today()-30;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//this will append incremental data which is not there in above QVD&lt;/P&gt;&lt;P&gt;Concatenate (Last30daysTranData)&lt;/P&gt;&lt;P&gt;Load time_id, ctry,prod from table databasetable where time_id&amp;gt;=Today()-30;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store Last30daysTranData into Last30daysTranData.QVD; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 06:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-loading-with-two-fact-tables/m-p/318362#M584790</guid>
      <dc:creator />
      <dc:date>2011-09-02T06:37:32Z</dc:date>
    </item>
  </channel>
</rss>

