<?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: Select from set A where not in Set B in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-from-set-A-where-not-in-Set-B/m-p/954188#M648845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get your logic to work both in a Load Script and also in the front-end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load script you could use Not( Exists( 'CompositeKeyField' , CompositeKeyValue ) ) in a WHERE clause of a LOAD statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field In ('a','b','c')&lt;/STRONG&gt; can be written as &lt;STRONG&gt;Pick( Match(&amp;nbsp; Field , 'a','b','c' ) )&lt;/STRONG&gt; in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the front-end you could query it by at least two approaches:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Just by using the associative logic of QlikView - under the assumption that you have tableB loaded an associated correctly with the fields you want results from. Then you do the "Select excluded" option on a List Box after having selected the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) By using Set Expression in your expression(s) in a chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Oct 2015 08:39:57 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-10-12T08:39:57Z</dc:date>
    <item>
      <title>Select from set A where not in Set B</title>
      <link>https://community.qlik.com/t5/QlikView/Select-from-set-A-where-not-in-Set-B/m-p/954185#M648838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I write the following (or create a flag) as an expression in a straight table. I cannot write that in load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1, field2 from tableA&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; field3 not in (select field3 from tableB where field4 in ('x','y','z'));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 03:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-from-set-A-where-not-in-Set-B/m-p/954185#M648838</guid>
      <dc:creator />
      <dc:date>2015-10-12T03:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select from set A where not in Set B</title>
      <link>https://community.qlik.com/t5/QlikView/Select-from-set-A-where-not-in-Set-B/m-p/954186#M648841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cud you share some sample data??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 08:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-from-set-A-where-not-in-Set-B/m-p/954186#M648841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-12T08:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select from set A where not in Set B</title>
      <link>https://community.qlik.com/t5/QlikView/Select-from-set-A-where-not-in-Set-B/m-p/954187#M648843</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;use not exist()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st load tableB&lt;/P&gt;&lt;P&gt;then load tableA with where clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;Load a,&lt;/P&gt;&lt;P&gt;b &lt;/P&gt;&lt;P&gt;from TableB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;Load a,&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;from TableA&lt;/P&gt;&lt;P&gt;where not exists(a,a)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: for detail working of exists() check QV help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 08:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-from-set-A-where-not-in-Set-B/m-p/954187#M648843</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-10-12T08:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select from set A where not in Set B</title>
      <link>https://community.qlik.com/t5/QlikView/Select-from-set-A-where-not-in-Set-B/m-p/954188#M648845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get your logic to work both in a Load Script and also in the front-end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load script you could use Not( Exists( 'CompositeKeyField' , CompositeKeyValue ) ) in a WHERE clause of a LOAD statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field In ('a','b','c')&lt;/STRONG&gt; can be written as &lt;STRONG&gt;Pick( Match(&amp;nbsp; Field , 'a','b','c' ) )&lt;/STRONG&gt; in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the front-end you could query it by at least two approaches:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Just by using the associative logic of QlikView - under the assumption that you have tableB loaded an associated correctly with the fields you want results from. Then you do the "Select excluded" option on a List Box after having selected the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) By using Set Expression in your expression(s) in a chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 08:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-from-set-A-where-not-in-Set-B/m-p/954188#M648845</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-12T08:39:57Z</dc:date>
    </item>
  </channel>
</rss>

