<?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: QlikView 'Not In' exclude functionality in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-Not-In-exclude-functionality/m-p/473675#M690223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look into exists(), match() functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your case, try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WHERE not&amp;nbsp; Exists(Temp1.KeyX, KeyX)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Sep 2013 16:57:51 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-09-24T16:57:51Z</dc:date>
    <item>
      <title>QlikView 'Not In' exclude functionality</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Not-In-exclude-functionality/m-p/473674#M690221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QV Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue figuring out the syntax for the code below. I'm basically trying to pull in all of the rows from a SQL table and add them to a QVD. To do so, I'm loading the QVD and SQL tables, then trying to create a third temp table that loads the results from the SQL table where the Key doesn't exist in the first table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simple way to do a 'not in' function in a load or nest a load statement with a select statement? Or a much simpler way to do it than I'm trying to do?&amp;nbsp; Thanks for your help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp1:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; KeyX&lt;/P&gt;&lt;P&gt;FROM c:\Key.QVD (qvd) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp2:&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;KeyX&lt;/P&gt;&lt;P&gt;,Field1&lt;/P&gt;&lt;P&gt;,Field2&lt;/P&gt;&lt;P&gt;,Field3 &lt;/P&gt;&lt;P&gt;FROM [DW].DBO.Report;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp3:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;KeyX&lt;/P&gt;&lt;P&gt;,Field1&lt;/P&gt;&lt;P&gt;,Field2&lt;/P&gt;&lt;P&gt;,Field3 &lt;/P&gt;&lt;P&gt;RESIDENT Temp2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE KeyX not in (LOAD * RESIDENT Temp1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 16:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Not-In-exclude-functionality/m-p/473674#M690221</guid>
      <dc:creator>andyquirin</dc:creator>
      <dc:date>2013-09-24T16:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView 'Not In' exclude functionality</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Not-In-exclude-functionality/m-p/473675#M690223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look into exists(), match() functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your case, try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WHERE not&amp;nbsp; Exists(Temp1.KeyX, KeyX)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 16:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Not-In-exclude-functionality/m-p/473675#M690223</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-24T16:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView 'Not In' exclude functionality</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Not-In-exclude-functionality/m-p/473676#M690224</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where not exists(Keyx,Keyx)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 16:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Not-In-exclude-functionality/m-p/473676#M690224</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-09-24T16:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView 'Not In' exclude functionality</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Not-In-exclude-functionality/m-p/473677#M690226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Mate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this post, some very helpful information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/93664"&gt;http://community.qlik.com/thread/93664&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get your script to reduce the results based on your criteria, apply the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Temp1:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&amp;nbsp; KeyX&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM c:\Key.QVD (qvd) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Temp2: //apply preceding load&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;WHERE not exists (KeyX,KeyX2); //Will load all values from SQL table where KeyX2 does not appear in KeyX&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KeyX as KeyX2 //Rename this field as indicated&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,Field1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,Field2&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,Field3&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM [DW].DBO.Report;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 17:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Not-In-exclude-functionality/m-p/473677#M690226</guid>
      <dc:creator />
      <dc:date>2013-09-24T17:02:40Z</dc:date>
    </item>
  </channel>
</rss>

