<?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 Scripting - add record if key is not present in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting-add-record-if-key-is-not-present/m-p/682477#M247414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have two tables :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1:&lt;/P&gt;&lt;P&gt;Key&lt;/P&gt;&lt;P&gt;Reason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;Key&lt;/P&gt;&lt;P&gt;Reason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write a script that would concatenate Table 2 (into Table 1)&amp;nbsp; ONLY when the key in Table 2 is not present in Table 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2014 12:57:15 GMT</pubDate>
    <dc:creator>zagzebski</dc:creator>
    <dc:date>2014-07-30T12:57:15Z</dc:date>
    <item>
      <title>Scripting - add record if key is not present</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-add-record-if-key-is-not-present/m-p/682477#M247414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have two tables :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1:&lt;/P&gt;&lt;P&gt;Key&lt;/P&gt;&lt;P&gt;Reason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;Key&lt;/P&gt;&lt;P&gt;Reason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write a script that would concatenate Table 2 (into Table 1)&amp;nbsp; ONLY when the key in Table 2 is not present in Table 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 12:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-add-record-if-key-is-not-present/m-p/682477#M247414</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2014-07-30T12:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting - add record if key is not present</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-add-record-if-key-is-not-present/m-p/682478#M247415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table 1:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Key&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Reason&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From TableName....&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;Concatenate&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;Table 2:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Key&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Reason&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From TableName&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Not Exists(Key)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 13:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-add-record-if-key-is-not-present/m-p/682478#M247415</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-30T13:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting - add record if key is not present</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-add-record-if-key-is-not-present/m-p/682479#M247416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with Where NOT Exists statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below is example load script for understand how it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:-&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Key,Reason&lt;/P&gt;&lt;P&gt;1,N&lt;/P&gt;&lt;P&gt;2,Y&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Key,Reason&lt;/P&gt;&lt;P&gt;3,Y&lt;/P&gt;&lt;P&gt;] Where not Exists(Key);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 13:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-add-record-if-key-is-not-present/m-p/682479#M247416</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-07-30T13:05:25Z</dc:date>
    </item>
  </channel>
</rss>

