<?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 Incremental load from QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-load-from-QVD/m-p/193847#M54959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have one big QVD file which is an export of data located in a DB. I do an incremental load updating all the data of the QVD. This works fine, but now I have different QlikView documents (each one belonging to a unique client) and I want to keep them updated as well. In the QVD I have the data of all the clients. How can I do it? I mean, I know how to do it from the DB to the QVD, but in the small documents, how can I load the data of the document to concatenate it with the new one from the QVD? This is the QVD script.&lt;/P&gt;&lt;P&gt;Let lastSessionID = peek('session_id');&lt;/P&gt;&lt;P&gt;sessions:&lt;BR /&gt;LOAD&lt;BR /&gt; session_id,&lt;BR /&gt; session_key,&lt;BR /&gt; begin_load,&lt;BR /&gt; begin_timestamp,&lt;BR /&gt; date(floor(begin_timestamp)) as begin_date,&lt;BR /&gt; year(begin_timestamp) as year,&lt;BR /&gt; ApplyMap('quarters', month(begin_timestamp)) as quarter,&lt;BR /&gt; year(begin_timestamp) &amp;amp; '-' &amp;amp; ApplyMap('quarters', month(begin_timestamp)) as year_quarter,&lt;BR /&gt; month(begin_timestamp) as month,&lt;BR /&gt; date(MakeDate(year(begin_timestamp), month(begin_timestamp)), 'YYYY-MMM') as year_month,&lt;BR /&gt; week(begin_timestamp) as week,&lt;BR /&gt; year(begin_timestamp) &amp;amp; '-' &amp;amp; week(begin_timestamp) as year_week,&lt;BR /&gt; weekday(begin_timestamp) as weekday,&lt;BR /&gt; day(begin_timestamp) as day,&lt;BR /&gt; hour(begin_timestamp) as hour,&lt;BR /&gt; bot_fk as session_bot_id,&lt;BR /&gt; transaction_count,&lt;BR /&gt; if(transaction_count - 1 = 0, 'Empty', 'Not Empty') as empty_session,&lt;BR /&gt; end_load;&lt;BR /&gt;SQL SELECT session_id, session_key, begin_load, begin_timestamp, bot_fk, transaction_count, end_load&lt;BR /&gt;FROM dw.f_sessions&lt;BR /&gt;WHERE session_id &amp;gt; $(lastSessionID);&lt;BR /&gt;Concatenate (MyData)&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM QVDS\incremental\sessions.qvd (qvd);&lt;BR /&gt;STORE *&lt;BR /&gt;FROM sessions&lt;BR /&gt;INTO QVDS\incremental\sessions.qvd;&lt;/P&gt;&lt;P&gt;************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want do the same but from QVD to a document. Like:&lt;/P&gt;&lt;P&gt;************************************************&lt;/P&gt;&lt;P&gt;Let lastSessionID = peek('session_id');&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;document DATA&lt;/P&gt;&lt;P&gt;FROM document.qvw&lt;/P&gt;&lt;P&gt;Concatenate (table)&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM QVDS\incremental\sessions.qvd (qvd)&lt;/P&gt;&lt;P&gt;WHERE session_id &amp;gt; $(lastSessionID);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jan 2011 12:34:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-31T12:34:32Z</dc:date>
    <item>
      <title>Incremental load from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-from-QVD/m-p/193847#M54959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have one big QVD file which is an export of data located in a DB. I do an incremental load updating all the data of the QVD. This works fine, but now I have different QlikView documents (each one belonging to a unique client) and I want to keep them updated as well. In the QVD I have the data of all the clients. How can I do it? I mean, I know how to do it from the DB to the QVD, but in the small documents, how can I load the data of the document to concatenate it with the new one from the QVD? This is the QVD script.&lt;/P&gt;&lt;P&gt;Let lastSessionID = peek('session_id');&lt;/P&gt;&lt;P&gt;sessions:&lt;BR /&gt;LOAD&lt;BR /&gt; session_id,&lt;BR /&gt; session_key,&lt;BR /&gt; begin_load,&lt;BR /&gt; begin_timestamp,&lt;BR /&gt; date(floor(begin_timestamp)) as begin_date,&lt;BR /&gt; year(begin_timestamp) as year,&lt;BR /&gt; ApplyMap('quarters', month(begin_timestamp)) as quarter,&lt;BR /&gt; year(begin_timestamp) &amp;amp; '-' &amp;amp; ApplyMap('quarters', month(begin_timestamp)) as year_quarter,&lt;BR /&gt; month(begin_timestamp) as month,&lt;BR /&gt; date(MakeDate(year(begin_timestamp), month(begin_timestamp)), 'YYYY-MMM') as year_month,&lt;BR /&gt; week(begin_timestamp) as week,&lt;BR /&gt; year(begin_timestamp) &amp;amp; '-' &amp;amp; week(begin_timestamp) as year_week,&lt;BR /&gt; weekday(begin_timestamp) as weekday,&lt;BR /&gt; day(begin_timestamp) as day,&lt;BR /&gt; hour(begin_timestamp) as hour,&lt;BR /&gt; bot_fk as session_bot_id,&lt;BR /&gt; transaction_count,&lt;BR /&gt; if(transaction_count - 1 = 0, 'Empty', 'Not Empty') as empty_session,&lt;BR /&gt; end_load;&lt;BR /&gt;SQL SELECT session_id, session_key, begin_load, begin_timestamp, bot_fk, transaction_count, end_load&lt;BR /&gt;FROM dw.f_sessions&lt;BR /&gt;WHERE session_id &amp;gt; $(lastSessionID);&lt;BR /&gt;Concatenate (MyData)&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM QVDS\incremental\sessions.qvd (qvd);&lt;BR /&gt;STORE *&lt;BR /&gt;FROM sessions&lt;BR /&gt;INTO QVDS\incremental\sessions.qvd;&lt;/P&gt;&lt;P&gt;************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want do the same but from QVD to a document. Like:&lt;/P&gt;&lt;P&gt;************************************************&lt;/P&gt;&lt;P&gt;Let lastSessionID = peek('session_id');&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;document DATA&lt;/P&gt;&lt;P&gt;FROM document.qvw&lt;/P&gt;&lt;P&gt;Concatenate (table)&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM QVDS\incremental\sessions.qvd (qvd)&lt;/P&gt;&lt;P&gt;WHERE session_id &amp;gt; $(lastSessionID);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 12:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-from-QVD/m-p/193847#M54959</guid>
      <dc:creator />
      <dc:date>2011-01-31T12:34:32Z</dc:date>
    </item>
  </channel>
</rss>

