<?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: Different set analysis results if tables are implicitly or explicitly joined in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Different-set-analysis-results-if-tables-are-implicitly-or/m-p/1752587#M57983</link>
    <description>&lt;P&gt;But why do the NULLs interact differently for the implicit join compared to the explicit join?&lt;/P&gt;&lt;P&gt;Is the implicit JOIN functioning more like a LEFT JOIN rather than an OUTER JOIN?&lt;/P&gt;&lt;P&gt;This is what it looks like if I don't include the Count in the table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daviewales_0-1602713039192.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42293iA1A958C1121981DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="daviewales_0-1602713039192.png" alt="daviewales_0-1602713039192.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2020 22:04:16 GMT</pubDate>
    <dc:creator>daviewales</dc:creator>
    <dc:date>2020-10-14T22:04:16Z</dc:date>
    <item>
      <title>Different set analysis results if tables are implicitly or explicitly joined</title>
      <link>https://community.qlik.com/t5/App-Development/Different-set-analysis-results-if-tables-are-implicitly-or/m-p/1752203#M57935</link>
      <description>&lt;P&gt;Consider the following Load script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;LOAD
    key,
    first_name
Inline [
    key,first_name
    1,Princess
    2,Dread Pirate
    3,Fezzik
];

LOAD
    key,
    last_name
Inline [
    key,last_name
    1,Buttercup
    2,Roberts
    4,Humperdinck
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose I want to count the total number of people who have either first_name='Princess' or 'Fezzik' or last_name='Humperdinck' based on the current selection.&lt;/P&gt;&lt;P&gt;I have tried to do this using the following set analysis:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Count({
    $&amp;lt;first_name*={'Princess','Fezzik'}&amp;gt;
    + $&amp;lt;last_name*={'Humperdinck'}&amp;gt;
} DISTINCT key)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We first find the intersection of the current selection (*=) in first_name with the values {'Princess', 'Fezzik'} and the intersection of the current selection in last_name with the value {'Humperdinck'}. We then find the union (+) of these two sets. Finally, we count the distinct keys.&lt;/P&gt;&lt;P&gt;If there are no other selections, my instinct is that the result should be 3. But in fact, the result is 2.&lt;/P&gt;&lt;P&gt;If I make the selection last_name='Buttercup', 'Roberts', 'Humperdinck', I would expect the count above to yield 2. But instead I get 1.&lt;/P&gt;&lt;P&gt;However, if I go back to the load script and explicitly JOIN the two tables (replace the second LOAD with JOIN LOAD), the set analysis works exactly as I would expect.&lt;/P&gt;&lt;P&gt;Can anyone link me to documentation which explains why the set analysis works differently depending on whether the tables are implicitly joined or explicitly joined?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-set-analysis-results-if-tables-are-implicitly-or/m-p/1752203#M57935</guid>
      <dc:creator>daviewales</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Different set analysis results if tables are implicitly or explicitly joined</title>
      <link>https://community.qlik.com/t5/App-Development/Different-set-analysis-results-if-tables-are-implicitly-or/m-p/1752230#M57944</link>
      <description>&lt;P&gt;It has something to do with the nulls.&lt;/P&gt;&lt;P&gt;Scenario 1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lisa_P_0-1602654005370.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42192i6783C01624234DC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lisa_P_0-1602654005370.png" alt="Lisa_P_0-1602654005370.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Scenario 2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lisa_P_1-1602654114119.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42193i1D43FF5993F64042/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lisa_P_1-1602654114119.png" alt="Lisa_P_1-1602654114119.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 05:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-set-analysis-results-if-tables-are-implicitly-or/m-p/1752230#M57944</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2020-10-14T05:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Different set analysis results if tables are implicitly or explicitly joined</title>
      <link>https://community.qlik.com/t5/App-Development/Different-set-analysis-results-if-tables-are-implicitly-or/m-p/1752587#M57983</link>
      <description>&lt;P&gt;But why do the NULLs interact differently for the implicit join compared to the explicit join?&lt;/P&gt;&lt;P&gt;Is the implicit JOIN functioning more like a LEFT JOIN rather than an OUTER JOIN?&lt;/P&gt;&lt;P&gt;This is what it looks like if I don't include the Count in the table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daviewales_0-1602713039192.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42293iA1A958C1121981DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="daviewales_0-1602713039192.png" alt="daviewales_0-1602713039192.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 22:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-set-analysis-results-if-tables-are-implicitly-or/m-p/1752587#M57983</guid>
      <dc:creator>daviewales</dc:creator>
      <dc:date>2020-10-14T22:04:16Z</dc:date>
    </item>
  </channel>
</rss>

