<?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 Logic Check on Repository Layer for Incremental ADD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Logic-Check-on-Repository-Layer-for-Incremental-ADD/m-p/43659#M772744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an Issues and Issues Call (think service calls) that have a unique ISSUE_ID that links the Issues and Issues Calls together. For the sake of this question, will stick with just Issues, as the Issues Calls will operate exactly the same (I HOPE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The daily file contains any new Issues (based on a new, unique ISSUE_ID), and need to merge that with the prior data. It's possible that an existing ID might have some information updated, in which case the entire row is resent along with any "new" ISSUE_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question here is that I want to create a backup of the "historical" data first before firing in new data. My concern is that I'm loading ServiceISSUEHistory first, turning around and firing out a .qvd as a differently named backup, then dropping it so I'm always starting with the "most current state" of any given ISSUE_ID (be it new or any updated ones).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD ServiceISSUEHistory.qvd as table "ServiceISSUEHistory:"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STORE as ServiceISSUEHistoryBackup.qvd {in case something goes horribly wrong have a prior record somewhere}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP table ServiceISSUEHistory {need to start with the most current version of any ISSUE_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD new file Service_Issue_Past7days_*.xls {daily file comes over as .xls)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD ServiceISSUEHistory.qvd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE NOT EXISTS (ISSUE_ID)&amp;nbsp;&amp;nbsp; {only bring it in if it DOESN'T already exist}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STORE as ServiceISSUEHistory.qvd {overwrite the existing historical record with today's rows added in}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Move on to other tables to load into the data model.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Is this a sound series of steps to do this? Or am I barking mad for trying it this way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks for any and all opinions on the matter!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Jonathan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>schneider2037</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Logic Check on Repository Layer for Incremental ADD</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-Check-on-Repository-Layer-for-Incremental-ADD/m-p/43659#M772744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an Issues and Issues Call (think service calls) that have a unique ISSUE_ID that links the Issues and Issues Calls together. For the sake of this question, will stick with just Issues, as the Issues Calls will operate exactly the same (I HOPE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The daily file contains any new Issues (based on a new, unique ISSUE_ID), and need to merge that with the prior data. It's possible that an existing ID might have some information updated, in which case the entire row is resent along with any "new" ISSUE_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question here is that I want to create a backup of the "historical" data first before firing in new data. My concern is that I'm loading ServiceISSUEHistory first, turning around and firing out a .qvd as a differently named backup, then dropping it so I'm always starting with the "most current state" of any given ISSUE_ID (be it new or any updated ones).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD ServiceISSUEHistory.qvd as table "ServiceISSUEHistory:"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STORE as ServiceISSUEHistoryBackup.qvd {in case something goes horribly wrong have a prior record somewhere}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP table ServiceISSUEHistory {need to start with the most current version of any ISSUE_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD new file Service_Issue_Past7days_*.xls {daily file comes over as .xls)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD ServiceISSUEHistory.qvd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE NOT EXISTS (ISSUE_ID)&amp;nbsp;&amp;nbsp; {only bring it in if it DOESN'T already exist}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STORE as ServiceISSUEHistory.qvd {overwrite the existing historical record with today's rows added in}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Move on to other tables to load into the data model.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Is this a sound series of steps to do this? Or am I barking mad for trying it this way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks for any and all opinions on the matter!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Jonathan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&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/Logic-Check-on-Repository-Layer-for-Incremental-ADD/m-p/43659#M772744</guid>
      <dc:creator>schneider2037</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

