<?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: Load / concatenate / update for daily data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-concatenate-update-for-daily-data/m-p/659122#M675279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps look at doing an incremental load.&lt;/P&gt;&lt;P&gt;You didn't specify what data source you're working with, so for simplicity sake, I'm going to assume an SQL table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This process will require you to have a modification date/time information in order to tell when a record was last updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt; SELECT &lt;SPAN style="color: #993300;"&gt;ID&lt;/SPAN&gt;, &lt;SPAN style="color: #993300;"&gt;Daily_File &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM DB_TABLE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE ModificationTime &amp;gt;= #$(&lt;SPAN style="color: #008080;"&gt;v&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;LastExecTime&lt;/SPAN&gt;)#;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;concatenate &lt;STRONG&gt;load &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #993300;"&gt;ID&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #993300;"&gt;Daily_File&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;from&lt;/SPAN&gt; Table.qvd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;where not exists(ID);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: #0000ff;"&gt;store&lt;/STRONG&gt; Table &lt;SPAN style="color: #0000ff;"&gt;into&lt;/SPAN&gt; Table.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;** &lt;SPAN style="color: #008080; font-family: 'courier new', courier;"&gt;v&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-family: 'courier new', courier;"&gt;LastExecTime &lt;/SPAN&gt;is the last updated time stamp (i.e. yesterday's date), and can be returned by doing something like max(&lt;SPAN style="font-family: 'courier new', courier;"&gt;ModificationTime&lt;/SPAN&gt;) from the existing qvd file (i.e. Table.qvd).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This process doesn't not handle deletion when records are deleted from the source data. An additional inner join will need to be performed if this is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 23:34:16 GMT</pubDate>
    <dc:creator>shawn-qv</dc:creator>
    <dc:date>2014-06-26T23:34:16Z</dc:date>
    <item>
      <title>Load / concatenate / update for daily data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-concatenate-update-for-daily-data/m-p/659120#M675277</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 need to load daily data into .QVD files. It's important to load day by day, as new days could contain identical IDs from old files that need to be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I do currently as pseudo-code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FOR Every Day&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Daily_File&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONCATENATE .qvd WHERE ID isn't in File&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store into .qvd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NEXT Day&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works just fine initially to load many days into the .qvd. However, as the .qvd grows bigger and bigger, it's very inefficient/slow to load/save/flush the .qvd 30 times to load a month's data in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea would be to do the above for day 1 only and the following from then on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FOR Every Day&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Daily_File&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONCATENATE RESIDENT Table WHERE ID isn't in File&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NEXT Day&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Store into .qvd&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The issue with that is that it creates "Table-1", "Table-2" etc. as the names already exist. Is there a way to open an existing table? Or a better way to solve my problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Oli&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 09:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-concatenate-update-for-daily-data/m-p/659120#M675277</guid>
      <dc:creator />
      <dc:date>2014-06-26T09:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Load / concatenate / update for daily data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-concatenate-update-for-daily-data/m-p/659121#M675278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose that if your code is something like this:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FOR Every Day&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Daily_File&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE Not Exists(ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;NEXT Day&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Store into .qvd&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;It should work, because QV would automatically concatenate each load into the same table, and would only include the IDs that doesnt yet exist. But the auto concatenate will only happen if the daily files structure (columns) is identical.&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 15:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-concatenate-update-for-daily-data/m-p/659121#M675278</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2014-06-26T15:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Load / concatenate / update for daily data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-concatenate-update-for-daily-data/m-p/659122#M675279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps look at doing an incremental load.&lt;/P&gt;&lt;P&gt;You didn't specify what data source you're working with, so for simplicity sake, I'm going to assume an SQL table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This process will require you to have a modification date/time information in order to tell when a record was last updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt; SELECT &lt;SPAN style="color: #993300;"&gt;ID&lt;/SPAN&gt;, &lt;SPAN style="color: #993300;"&gt;Daily_File &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM DB_TABLE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE ModificationTime &amp;gt;= #$(&lt;SPAN style="color: #008080;"&gt;v&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;LastExecTime&lt;/SPAN&gt;)#;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;concatenate &lt;STRONG&gt;load &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #993300;"&gt;ID&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #993300;"&gt;Daily_File&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;from&lt;/SPAN&gt; Table.qvd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;where not exists(ID);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: #0000ff;"&gt;store&lt;/STRONG&gt; Table &lt;SPAN style="color: #0000ff;"&gt;into&lt;/SPAN&gt; Table.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;** &lt;SPAN style="color: #008080; font-family: 'courier new', courier;"&gt;v&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-family: 'courier new', courier;"&gt;LastExecTime &lt;/SPAN&gt;is the last updated time stamp (i.e. yesterday's date), and can be returned by doing something like max(&lt;SPAN style="font-family: 'courier new', courier;"&gt;ModificationTime&lt;/SPAN&gt;) from the existing qvd file (i.e. Table.qvd).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This process doesn't not handle deletion when records are deleted from the source data. An additional inner join will need to be performed if this is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 23:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-concatenate-update-for-daily-data/m-p/659122#M675279</guid>
      <dc:creator>shawn-qv</dc:creator>
      <dc:date>2014-06-26T23:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Load / concatenate / update for daily data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-concatenate-update-for-daily-data/m-p/659123#M675280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Shawn &amp;amp; Fernando to interrupt in this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've same issue, like not concatenating but new records are adding. But i'm handling with csv to QVD only not SQL server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to fix this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nandhakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 11:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-concatenate-update-for-daily-data/m-p/659123#M675280</guid>
      <dc:creator>nandhaadjame200</dc:creator>
      <dc:date>2018-10-31T11:44:57Z</dc:date>
    </item>
  </channel>
</rss>

