<?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 Left Join Behavior in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Left-Join-Behavior/m-p/2136718#M92384</link>
    <description>&lt;P&gt;The below script should produce a total sum of -770 000. However, it only does so in TableB and TableC.&lt;/P&gt;
&lt;P&gt;The only difference being that TableB uses a unique key (which is dropped after load) and TableC uses a non distinct load in the right table.&lt;/P&gt;
&lt;P&gt;Can anybody explain why one of the duplicate values is removed in the load statement of TableA, while it isn't removed in TableB nor in TableC? QV and QS both behave the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coldie_0-1699622338495.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119730iF341C05F79D6CA7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coldie_0-1699622338495.png" alt="Coldie_0-1699622338495.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;
&lt;P&gt;Load Statements:&lt;/P&gt;
&lt;P&gt;TableA:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;KeyA;ValueA&lt;BR /&gt;K300;30000&lt;BR /&gt;K300;-800000&lt;BR /&gt;K300;-800000&lt;BR /&gt;K300;800000&lt;BR /&gt;] (delimiter is ';');&lt;/P&gt;
&lt;P&gt;LEFT JOIN (TableA)&lt;BR /&gt;Load DISTINCT * Inline [&lt;BR /&gt;KeyA&lt;BR /&gt;K300&lt;BR /&gt;] (delimiter is ';');&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;TableB:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load * Inline [&lt;BR /&gt;KeyB;ValueB;UniqueKey&lt;BR /&gt;K300;30000,1&lt;BR /&gt;K300;-800000,2&lt;BR /&gt;K300;800000,3&lt;BR /&gt;K300;-800000,4&lt;BR /&gt;] (delimiter is ';');&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;LEFT JOIN (TableB)&lt;BR /&gt;Load DISTINCT * Inline [&lt;BR /&gt;KeyB&lt;BR /&gt;K300&lt;BR /&gt;] (delimiter is ';');&lt;/P&gt;
&lt;P&gt;Drop Field UniqueKey;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;TableC:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load * Inline [&lt;BR /&gt;KeyC;ValueC&lt;BR /&gt;K300;30000&lt;BR /&gt;K300;-800000&lt;BR /&gt;K300;800000&lt;BR /&gt;K300;-800000&lt;BR /&gt;] (delimiter is ';');&lt;/P&gt;
&lt;P&gt;LEFT JOIN (TableC)&lt;BR /&gt;Load * Inline [&lt;BR /&gt;KeyC&lt;BR /&gt;K300&lt;BR /&gt;] (delimiter is ';');&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 13:22:32 GMT</pubDate>
    <dc:creator>Coldie</dc:creator>
    <dc:date>2023-11-10T13:22:32Z</dc:date>
    <item>
      <title>Left Join Behavior</title>
      <link>https://community.qlik.com/t5/App-Development/Left-Join-Behavior/m-p/2136718#M92384</link>
      <description>&lt;P&gt;The below script should produce a total sum of -770 000. However, it only does so in TableB and TableC.&lt;/P&gt;
&lt;P&gt;The only difference being that TableB uses a unique key (which is dropped after load) and TableC uses a non distinct load in the right table.&lt;/P&gt;
&lt;P&gt;Can anybody explain why one of the duplicate values is removed in the load statement of TableA, while it isn't removed in TableB nor in TableC? QV and QS both behave the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coldie_0-1699622338495.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119730iF341C05F79D6CA7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coldie_0-1699622338495.png" alt="Coldie_0-1699622338495.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;
&lt;P&gt;Load Statements:&lt;/P&gt;
&lt;P&gt;TableA:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;KeyA;ValueA&lt;BR /&gt;K300;30000&lt;BR /&gt;K300;-800000&lt;BR /&gt;K300;-800000&lt;BR /&gt;K300;800000&lt;BR /&gt;] (delimiter is ';');&lt;/P&gt;
&lt;P&gt;LEFT JOIN (TableA)&lt;BR /&gt;Load DISTINCT * Inline [&lt;BR /&gt;KeyA&lt;BR /&gt;K300&lt;BR /&gt;] (delimiter is ';');&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;TableB:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load * Inline [&lt;BR /&gt;KeyB;ValueB;UniqueKey&lt;BR /&gt;K300;30000,1&lt;BR /&gt;K300;-800000,2&lt;BR /&gt;K300;800000,3&lt;BR /&gt;K300;-800000,4&lt;BR /&gt;] (delimiter is ';');&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;LEFT JOIN (TableB)&lt;BR /&gt;Load DISTINCT * Inline [&lt;BR /&gt;KeyB&lt;BR /&gt;K300&lt;BR /&gt;] (delimiter is ';');&lt;/P&gt;
&lt;P&gt;Drop Field UniqueKey;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;TableC:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load * Inline [&lt;BR /&gt;KeyC;ValueC&lt;BR /&gt;K300;30000&lt;BR /&gt;K300;-800000&lt;BR /&gt;K300;800000&lt;BR /&gt;K300;-800000&lt;BR /&gt;] (delimiter is ';');&lt;/P&gt;
&lt;P&gt;LEFT JOIN (TableC)&lt;BR /&gt;Load * Inline [&lt;BR /&gt;KeyC&lt;BR /&gt;K300&lt;BR /&gt;] (delimiter is ';');&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 13:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Left-Join-Behavior/m-p/2136718#M92384</guid>
      <dc:creator>Coldie</dc:creator>
      <dc:date>2023-11-10T13:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Behavior</title>
      <link>https://community.qlik.com/t5/App-Development/Left-Join-Behavior/m-p/2136741#M92387</link>
      <description>&lt;P&gt;The join to TableA is a distinct load and this statement worked against both loads and removes therefore the records.&lt;/P&gt;
&lt;P&gt;Beside this what's the aim behind this testing? In most scenarios it would be more suitable to concatenate such tables as keeping them separate.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 14:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Left-Join-Behavior/m-p/2136741#M92387</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-11-10T14:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Behavior</title>
      <link>https://community.qlik.com/t5/App-Development/Left-Join-Behavior/m-p/2136746#M92388</link>
      <description>&lt;P&gt;Qlik is sometimes doing some jokes.&lt;BR /&gt;When you are doing this:&lt;BR /&gt;&lt;SPAN&gt;LEFT JOIN (TableB)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Load DISTINCT * Inline [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;KeyB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;K300&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;] (delimiter is ';');&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Qlik is doing a DISTINCT on both side of the join, so on TableB and on your InLine.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 14:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Left-Join-Behavior/m-p/2136746#M92388</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-11-10T14:28:11Z</dc:date>
    </item>
  </channel>
</rss>

