<?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 Finding Orphans in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235908#M87137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I missunderstood a little the question.&lt;/P&gt;&lt;P&gt;You still can use not exists but you'll have to load the second table again with &lt;STRONG&gt;not exists(key-2, key-1).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hope to be right this time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Apr 2011 22:23:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-29T22:23:32Z</dc:date>
    <item>
      <title>Finding Orphans</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235905#M87134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two tables both have the same key field (Sales Order together with Line Number). Table 1 has Sales Order and Line number 123-1, 123-2, 123-3 and 123-4. But Table 2 has line 1 2 and 3 but not 4.&lt;/P&gt;&lt;P&gt;I need a script that will take the two tables and the result is only items in table 2 that are not in table 1 (ie I only want to see 123-4)&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 21:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235905#M87134</guid>
      <dc:creator />
      <dc:date>2011-04-29T21:59:05Z</dc:date>
    </item>
    <item>
      <title>Finding Orphans</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235906#M87135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the values are the same you could use not exists(key-1, key2) when loading the second table .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 22:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235906#M87135</guid>
      <dc:creator />
      <dc:date>2011-04-29T22:17:17Z</dc:date>
    </item>
    <item>
      <title>Finding Orphans</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235907#M87136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course. have used before. It must be Friday! Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 22:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235907#M87136</guid>
      <dc:creator />
      <dc:date>2011-04-29T22:23:01Z</dc:date>
    </item>
    <item>
      <title>Finding Orphans</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235908#M87137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I missunderstood a little the question.&lt;/P&gt;&lt;P&gt;You still can use not exists but you'll have to load the second table again with &lt;STRONG&gt;not exists(key-2, key-1).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hope to be right this time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 22:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235908#M87137</guid>
      <dc:creator />
      <dc:date>2011-04-29T22:23:32Z</dc:date>
    </item>
    <item>
      <title>Finding Orphans</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235909#M87138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carlos, hope you are still around. I am having trouble the resident part. Can you create a small example?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 22:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235909#M87138</guid>
      <dc:creator />
      <dc:date>2011-04-29T22:58:34Z</dc:date>
    </item>
    <item>
      <title>Finding Orphans</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235910#M87139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;Load * Resident Table1 where not exists(Table2.KEY, Table1.KEY);&lt;/P&gt;&lt;P&gt;Including example application.&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Apr 2011 08:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235910#M87139</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-04-30T08:55:22Z</dc:date>
    </item>
    <item>
      <title>Finding Orphans</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235911#M87140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You don't have to use &lt;STRONG&gt;resident&lt;/STRONG&gt; unless you have have previously loaded the second table and you want to get your data from that table in memory.&lt;/P&gt;&lt;P&gt;You simply have to make sure that the first field to be used in the &lt;STRONG&gt;Exists( )&lt;/STRONG&gt; function has already been loaded when you use it.&lt;/P&gt;&lt;P&gt;Since you want the values in table 2 that don't exist in table 1, you'll have to do the next:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TABLE 1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt; OR &lt;STRONG&gt;RESIDENT&lt;/STRONG&gt; WHATEVER YOUR SOURCE IS&lt;/P&gt;&lt;P&gt;(This includes the field Sales Order Line Number of the first table, suppose it is called &lt;STRONG&gt;Key1&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TABLE 2:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt; OR &lt;STRONG&gt;RESIDENT&lt;/STRONG&gt; WHATEVER YOUR SOURCE IS&lt;/P&gt;&lt;P&gt;(This includes the field Sales Order Line Number of the second table, suppose it is called &lt;STRONG&gt;Key2&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS&lt;STRONG&gt;(Key1&lt;/STRONG&gt;,&lt;STRONG&gt;Key2&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the second table will only load the records that have a Sales Order Line Number that don't exist in Table 1.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 15:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Orphans/m-p/235911#M87140</guid>
      <dc:creator />
      <dc:date>2011-05-02T15:37:57Z</dc:date>
    </item>
  </channel>
</rss>

