<?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: Anti join - does set analysis force an inner join? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Anti-join-does-set-analysis-force-an-inner-join/m-p/400130#M490954</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;I totally agree on the need of a better documentation and I'm aware that are people within QlikView working on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your remarks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2012 11:32:33 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2012-09-12T11:32:33Z</dc:date>
    <item>
      <title>Anti join - does set analysis force an inner join?</title>
      <link>https://community.qlik.com/t5/QlikView/Anti-join-does-set-analysis-force-an-inner-join/m-p/400126#M490944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a test QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario is this - you want to count those people that appear on Table 1, but NOT on Table 2.&amp;nbsp; I have tried using set analysis (you will see in Options 1 and 2) but it appears that an inner join is forced.&amp;nbsp; So I have to use an IF statement (option 3) that works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone confirm that in QV a set analysis always forces an inner join when variables from two (or more) tables are included in the set statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further - if anyone knows a way to do this anti join using Set analysis then I'd love to hear it.&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;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 10:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Anti-join-does-set-analysis-force-an-inner-join/m-p/400126#M490944</guid>
      <dc:creator />
      <dc:date>2012-09-12T10:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Anti join - does set analysis force an inner join?</title>
      <link>https://community.qlik.com/t5/QlikView/Anti-join-does-set-analysis-force-an-inner-join/m-p/400127#M490946</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;Technically, what QlikView does is link two tables as long as they share at least one field with the same name, case sensitive. What the listbox shows is the list of possible different values in that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want to keep this link, but show which values are where, I'd duplicate the fields in the script with different names, then use a flag field using the function Exists() for example, to create a 1 or 0 value flag field that you will use later to count the differences, something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13474479669006623" jivemacro_uid="_13474479669006623"&gt;&lt;P&gt;=Count({1 - &amp;lt; FLG = {1} &amp;gt;} DISTINCT ID)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That reads: return the number of distinct values in field ID that do not have FLG = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that gives you an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 11:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Anti-join-does-set-analysis-force-an-inner-join/m-p/400127#M490946</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-09-12T11:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Anti join - does set analysis force an inner join?</title>
      <link>https://community.qlik.com/t5/QlikView/Anti-join-does-set-analysis-force-an-inner-join/m-p/400128#M490948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great!&amp;nbsp; Thanks Miguel, I have not used the 1 - before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing QlikTech could do better is the documentation around set analysis. Just a suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 11:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Anti-join-does-set-analysis-force-an-inner-join/m-p/400128#M490948</guid>
      <dc:creator />
      <dc:date>2012-09-12T11:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Anti join - does set analysis force an inner join?</title>
      <link>https://community.qlik.com/t5/QlikView/Anti-join-does-set-analysis-force-an-inner-join/m-p/400129#M490951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just as a further note.&amp;nbsp; The scenario I want is ID's on one table but not on another table.&amp;nbsp; So the full code I used looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({1 - &amp;lt;FLG={1}&amp;gt;*&amp;lt;TFLG={1}&amp;gt;} distinct ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where TFLG={1} is on the table I WANT to count and FLG={1} is the flag on the table I want to EXCLUDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worked a treat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 11:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Anti-join-does-set-analysis-force-an-inner-join/m-p/400129#M490951</guid>
      <dc:creator />
      <dc:date>2012-09-12T11:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Anti join - does set analysis force an inner join?</title>
      <link>https://community.qlik.com/t5/QlikView/Anti-join-does-set-analysis-force-an-inner-join/m-p/400130#M490954</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;I totally agree on the need of a better documentation and I'm aware that are people within QlikView working on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your remarks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 11:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Anti-join-does-set-analysis-force-an-inner-join/m-p/400130#M490954</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-09-12T11:32:33Z</dc:date>
    </item>
  </channel>
</rss>

