<?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 Adding records to an existing table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243918#M1206642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, thanks gordon, that's done it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2010 12:29:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-22T12:29:22Z</dc:date>
    <item>
      <title>Adding records to an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243913#M1206637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there, me again, hope someonce can advise.&lt;/P&gt;&lt;P&gt;I want to run a daily process that brings in records in an 'Outstanding' status, and records their 'Record ID', the 'Current Date' and the 'Team' that they are assigned to.&lt;/P&gt;&lt;P&gt;I want to add a new set of records that meet the 'Outstanding' criteria each day, so that i can trend the volume of 'Outstanding' Records. What i dont want to happen is for the table to be completelty refreshed each day, i want all previous records to remain, and a new block or 'Outstanding' Records to be added to the bottom of the table.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Day 1 run creates&lt;/P&gt;&lt;P&gt;Outstanding Records:&lt;/P&gt;&lt;P&gt;ID, Date. Team&lt;/P&gt;&lt;P&gt;1, Day1, TeamA&lt;/P&gt;&lt;P&gt;3, Day1, TeamA&lt;/P&gt;&lt;P&gt;5, Day1, TeamB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Day 2 Run adds new records to the table, tagged as Day2&lt;/P&gt;&lt;P&gt;ID, Date, Team&lt;/P&gt;&lt;P&gt;1, Day1, TeamA&lt;/P&gt;&lt;P&gt;3, Day1, TeamA&lt;/P&gt;&lt;P&gt;5, Day1, TeamB&lt;/P&gt;&lt;P&gt;3, Day2, TeamA&lt;/P&gt;&lt;P&gt;5, Day2, TeamB&lt;/P&gt;&lt;P&gt;8, Day2, TeamA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also like to only store each record ID once for each day, so if i run the import again on the same day i want to avoid creating duplicate entries in the table.&lt;/P&gt;&lt;P&gt;Can someone advise how to add the new records to an existing table without creating duplicate records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Feb 2010 12:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243913#M1206637</guid>
      <dc:creator />
      <dc:date>2010-02-21T12:04:15Z</dc:date>
    </item>
    <item>
      <title>Adding records to an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243914#M1206638</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;If i understand well, you have one table by day ?&lt;/P&gt;&lt;P&gt;so , you can do with ADD Load and Partial Reload (CTRL+SHIFT+R).&lt;/P&gt;&lt;P&gt;But if you want to introduce a loop maybe the best way is to create a QVD file :&lt;/P&gt;&lt;P&gt;1) read QVD of your data&lt;/P&gt;&lt;P&gt;2) read new data for the current day,&lt;/P&gt;&lt;P&gt;3) set the data thanks to Add Load&lt;/P&gt;&lt;P&gt;4) Update your QVD&lt;/P&gt;&lt;P&gt;look at the reference manual to understand how to create a QVD file&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Feb 2010 12:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243914#M1206638</guid>
      <dc:creator />
      <dc:date>2010-02-21T12:57:52Z</dc:date>
    </item>
    <item>
      <title>Adding records to an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243915#M1206639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this, i can now create a qvd file and add to it on a daily basis. The final thing i need is to add a field to the qvd file that includes the date that the record is added to the qvd file?&lt;/P&gt;&lt;P&gt;I've tried doing this by setting a variable of Today() and loading this variable as the extra field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;OutstandingRecords:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Let&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThisExecTime = Today();&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status,&lt;/P&gt;&lt;P&gt;PK_ID2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;ThisExecTime;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;SELECT&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt; "FK_Status" AS Status,&lt;/P&gt;&lt;P&gt;"PK_ID"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;FROM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"DataSource".dbo.FactCall&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;"FK_Status" NOT LIKE&lt;/P&gt;&lt;P&gt;'CL';&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i get an error saying the field does not exist. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 12:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243915#M1206639</guid>
      <dc:creator />
      <dc:date>2010-02-22T12:08:24Z</dc:date>
    </item>
    <item>
      <title>Adding records to an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243916#M1206640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to identify it as a variable as&lt;/P&gt;&lt;P&gt;$(ThisExecTime) as DateField&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 12:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243916#M1206640</guid>
      <dc:creator />
      <dc:date>2010-02-22T12:12:21Z</dc:date>
    </item>
    <item>
      <title>Adding records to an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243917#M1206641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore me, i've sorted it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 12:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243917#M1206641</guid>
      <dc:creator />
      <dc:date>2010-02-22T12:28:22Z</dc:date>
    </item>
    <item>
      <title>Adding records to an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243918#M1206642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, thanks gordon, that's done it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 12:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-records-to-an-existing-table/m-p/243918#M1206642</guid>
      <dc:creator />
      <dc:date>2010-02-22T12:29:22Z</dc:date>
    </item>
  </channel>
</rss>

