<?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: First Qlikview-Project: Change (Add, Modify, Delete) Qlikview-Table-Entries with daily delta-fil in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-Qlikview-Project-Change-Add-Modify-Delete-Qlikview-Table/m-p/1518202#M748544</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi Angus MacGyver,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Welcome to Qlik world..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I understand that delta files will have new records to add, existing records to modify records, existing records with a identifier field "FLAG", you want to add / modify / delete records to Table_base based on the FLAG field in the delta&amp;nbsp; file.&lt;BR /&gt;Here is the sample code helps you to get the idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;// Load delta file first, and create a new key for records to be modified or deleted.&lt;BR /&gt;Delta_file:&lt;BR /&gt;Load *,&lt;BR /&gt;If(FLAG = 'D' or FLAG = 'M', RECORD_KEY ) as Exclude_Record_key // identify M and D records&amp;nbsp;&lt;BR /&gt;From delta-file ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Load Table_base without records to be deleted or modified.&lt;BR /&gt;Table_base:&lt;BR /&gt;noconcatenate&lt;BR /&gt;First Load based table Table_Base without delete records&lt;BR /&gt;Load * from Table_base where NOT exists(Exclude_Record_key,Record_key);&lt;/P&gt;&lt;P&gt;// Add A or M records from Delta file to Table_base&lt;BR /&gt;concatenate(Table_base)&lt;BR /&gt;Load * resident Delta_file WHERE FLAG = 'A' or FLAG = 'M';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Laks&lt;/P&gt;</description>
    <pubDate>Sat, 08 Dec 2018 05:20:00 GMT</pubDate>
    <dc:creator>laksyelugoti</dc:creator>
    <dc:date>2018-12-08T05:20:00Z</dc:date>
    <item>
      <title>First Qlikview-Project: Change (Add, Modify, Delete) Qlikview-Table-Entries with daily delta-files</title>
      <link>https://community.qlik.com/t5/QlikView/First-Qlikview-Project-Change-Add-Modify-Delete-Qlikview-Table/m-p/1518179#M748543</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I`m completly new to QlikView and unfortunately I`m also not a traines database-professional;so I beg your pardon if my question / first question might be to obvious &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have a base table as tabulated text-file containing the following columns&lt;BR /&gt;&lt;STRONG&gt;Modification Flag, Record Key, Data 1, Data 2&lt;/STRONG&gt;, etc.&lt;/P&gt;&lt;P&gt;I started my project by just loading that base table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Table_Base:
LOAD [MODIFICATION FLAG], 
     [RECORD KEY], 
     [DATA 1], 
     [DATA 2]
FROM
[C:\Users\Windows.User\Documents\DATA\DATA_V3_FULL_20181123.txt]
(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On each day of the week I now get so called "daily-delta" files in the same format.&lt;BR /&gt;I now want to update the Qlikview-Base-Table according to this "daily-delta-files".&lt;/P&gt;&lt;P&gt;The daily-delta-files could have the following values in field "Modification Flag": A = Add, D = Delete and M =Modified.&lt;BR /&gt;The "Record Key" present is a unique key consisting of 12 alphanummeric characters.&lt;/P&gt;&lt;P&gt;The Qlikview-Base-Table now should be updated (Add, Delete, Modify) according to the "Modification Flag" for the matching "Record Key" specified in the daily-delta file.&lt;/P&gt;&lt;P&gt;Side notes:&lt;BR /&gt;- Rows which will be added (ModiFlag = A) will have a new unique Record Key.&lt;BR /&gt;- Especially for the first daily-delta-file delivered right after creation of the base table it will be possible that there are rows mentioned in the daily-delta-file which should be deleted (ModiFlag = D) but which are not present in the base table. This should not throw an error.&lt;/P&gt;&lt;P&gt;How could I do this with Qlikview?&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Angus MacGyver&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Qlikview-Project-Change-Add-Modify-Delete-Qlikview-Table/m-p/1518179#M748543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: First Qlikview-Project: Change (Add, Modify, Delete) Qlikview-Table-Entries with daily delta-fil</title>
      <link>https://community.qlik.com/t5/QlikView/First-Qlikview-Project-Change-Add-Modify-Delete-Qlikview-Table/m-p/1518202#M748544</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Angus MacGyver,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Welcome to Qlik world..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I understand that delta files will have new records to add, existing records to modify records, existing records with a identifier field "FLAG", you want to add / modify / delete records to Table_base based on the FLAG field in the delta&amp;nbsp; file.&lt;BR /&gt;Here is the sample code helps you to get the idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;// Load delta file first, and create a new key for records to be modified or deleted.&lt;BR /&gt;Delta_file:&lt;BR /&gt;Load *,&lt;BR /&gt;If(FLAG = 'D' or FLAG = 'M', RECORD_KEY ) as Exclude_Record_key // identify M and D records&amp;nbsp;&lt;BR /&gt;From delta-file ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Load Table_base without records to be deleted or modified.&lt;BR /&gt;Table_base:&lt;BR /&gt;noconcatenate&lt;BR /&gt;First Load based table Table_Base without delete records&lt;BR /&gt;Load * from Table_base where NOT exists(Exclude_Record_key,Record_key);&lt;/P&gt;&lt;P&gt;// Add A or M records from Delta file to Table_base&lt;BR /&gt;concatenate(Table_base)&lt;BR /&gt;Load * resident Delta_file WHERE FLAG = 'A' or FLAG = 'M';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Laks&lt;/P&gt;</description>
      <pubDate>Sat, 08 Dec 2018 05:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Qlikview-Project-Change-Add-Modify-Delete-Qlikview-Table/m-p/1518202#M748544</guid>
      <dc:creator>laksyelugoti</dc:creator>
      <dc:date>2018-12-08T05:20:00Z</dc:date>
    </item>
  </channel>
</rss>

