<?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: Clarification on Left Keep vs. Left Join in Qlik in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Clarification-on-Left-Keep-vs-Left-Join-in-Qlik/m-p/2466365#M99245</link>
    <description>&lt;P&gt;A join merged tables while a keep remained with separately tables. Of course the relationship between the tables is important and usually non of the shown scenarios is really relevant respectively not comparable to each other.&lt;/P&gt;
&lt;P&gt;A 1:n join which duplicates records is rather seldom intentionally used and if it would exclude keep as an alternatively approach. The common aim of keep isn't to merge else to filter tables and here mainly to filter a dimension-table against a fact-table, for example to exclude older products/dates/staff ... which aren't included within the sales of the last n periods.&lt;/P&gt;
&lt;P&gt;To conclude the join/keep-logic is quite similar to each other but the use-cases are different.&lt;/P&gt;
&lt;P&gt;Beside of this, within the most scenarios - especially in well build star-scheme data-models - the calculation against key-fields will be working and returning the expected results but in other data-models and/or having 1:n or n:m relations and/or having missing keys and/or NULL in them it may not working as expected. As far as there are any doubts - don't calculate with them else use normal fields (maybe just a duplicated field).&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 10:54:43 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-06-28T10:54:43Z</dc:date>
    <item>
      <title>Clarification on Left Keep vs. Left Join in Qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Clarification-on-Left-Keep-vs-Left-Join-in-Qlik/m-p/2466301#M99242</link>
      <description>&lt;P&gt;Hello Qlik Community,&lt;/P&gt;
&lt;P&gt;I'm currently working with Qlik Sense and I'm trying to understand the difference between "left keep" and "left join" operations in Qlik's scripting language. I've encountered a scenario where the results from these operations differ, and I'm seeking clarification on how they function differently.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I have two tables, let's call them Table A and Table B, with the following structures:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Table A:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;A:&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;/P&gt;
&lt;P&gt;F1,F2&lt;BR /&gt;A, 1&lt;BR /&gt;B, 2&lt;BR /&gt;C, 1&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Table B:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Load * Inline&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium"&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;F1, F3&lt;BR /&gt;A, 2&lt;BR /&gt;A, 3&lt;BR /&gt;A, 4&lt;BR /&gt;B, 1&lt;BR /&gt;];&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Join=&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pallavi_96_2-1719562335118.png" style="width: 275px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168608i4A83C862551261AE/image-dimensions/275x84?v=v2" width="275" height="84" role="button" title="pallavi_96_2-1719562335118.png" alt="pallavi_96_2-1719562335118.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Keep=&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pallavi_96_1-1719562275768.png" style="width: 320px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168607i4510C0136FBC57AF/image-dimensions/320x98?v=v2" width="320" height="98" role="button" title="pallavi_96_1-1719562275768.png" alt="pallavi_96_1-1719562275768.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Analysis:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;When I perform a left join on Id, I get a 3 Id count for A.&lt;/LI&gt;
&lt;LI&gt;However, when I use "left keep" instead of "left join," I notice a different count i.e. 1 Id count for A.&lt;/LI&gt;
&lt;LI&gt;Also when I see in data manager for Left keep it shows 1:M relationship.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Specific Questions:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;What is the precise difference between "left join" and "left keep" in Qlik?&lt;/LI&gt;
&lt;LI&gt;Why does the count of rows for Table A differ between these operations in my scenario?&lt;/LI&gt;
&lt;LI&gt;How does "left keep" handle multiple matches in Table B compared to "left join"?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I'm looking for insights into how these operations are implemented in Qlik Sense specifically, and any examples or explanations that could help clarify their behavior would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;Thank you in advance for your assistance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 08:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Clarification-on-Left-Keep-vs-Left-Join-in-Qlik/m-p/2466301#M99242</guid>
      <dc:creator>pallavi_96</dc:creator>
      <dc:date>2024-06-28T08:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on Left Keep vs. Left Join in Qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Clarification-on-Left-Keep-vs-Left-Join-in-Qlik/m-p/2466365#M99245</link>
      <description>&lt;P&gt;A join merged tables while a keep remained with separately tables. Of course the relationship between the tables is important and usually non of the shown scenarios is really relevant respectively not comparable to each other.&lt;/P&gt;
&lt;P&gt;A 1:n join which duplicates records is rather seldom intentionally used and if it would exclude keep as an alternatively approach. The common aim of keep isn't to merge else to filter tables and here mainly to filter a dimension-table against a fact-table, for example to exclude older products/dates/staff ... which aren't included within the sales of the last n periods.&lt;/P&gt;
&lt;P&gt;To conclude the join/keep-logic is quite similar to each other but the use-cases are different.&lt;/P&gt;
&lt;P&gt;Beside of this, within the most scenarios - especially in well build star-scheme data-models - the calculation against key-fields will be working and returning the expected results but in other data-models and/or having 1:n or n:m relations and/or having missing keys and/or NULL in them it may not working as expected. As far as there are any doubts - don't calculate with them else use normal fields (maybe just a duplicated field).&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 10:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Clarification-on-Left-Keep-vs-Left-Join-in-Qlik/m-p/2466365#M99245</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-28T10:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on Left Keep vs. Left Join in Qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Clarification-on-Left-Keep-vs-Left-Join-in-Qlik/m-p/2467450#M99336</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;
&lt;DIV class="flex-col gap-1 md:gap-3"&gt;
&lt;DIV class="flex flex-grow flex-col max-w-full"&gt;
&lt;DIV class="min-h-[20px] text-message flex flex-col items-start whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 juice:w-full juice:items-end overflow-x-auto gap-3" dir="auto" data-message-author-role="assistant" data-message-id="9219a843-7b73-4be3-a0d7-954ddc8cd83a"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;Thank you for addressing my query.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Jul 2024 05:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Clarification-on-Left-Keep-vs-Left-Join-in-Qlik/m-p/2467450#M99336</guid>
      <dc:creator>pallavi_96</dc:creator>
      <dc:date>2024-07-03T05:56:11Z</dc:date>
    </item>
  </channel>
</rss>

