<?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: Keep, Join and Applymap in 1-N scenarios. Which is correct? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Keep-Join-and-Applymap-in-1-N-scenarios-Which-is-correct/m-p/1258338#M397284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel, Could you please tell me why is the difference in Total Sales(keep and join)? Which one we should use in real business scenarios?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Mar 2017 10:28:48 GMT</pubDate>
    <dc:creator>Prabhu</dc:creator>
    <dc:date>2017-03-22T10:28:48Z</dc:date>
    <item>
      <title>Keep, Join and Applymap in 1-N scenarios. Which is correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Keep-Join-and-Applymap-in-1-N-scenarios-Which-is-correct/m-p/1258336#M397282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have loaded two tables. Table3 has 1-N scenario. I need to get Product information to Budget table:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="157038" alt="1.PNG" class="jive-image image-1" height="249" src="https://community.qlik.com/legacyfs/online/157038_1.PNG" style="height: 249px; width: 324.928px;" width="325" /&gt;&lt;/P&gt;&lt;P&gt;When i use right keep between the two tables, i see the following result:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="157076" alt="2.PNG" class="jive-image image-2" height="176" src="https://community.qlik.com/legacyfs/online/157076_2.PNG" style="height: 176.308px; width: 324px;" width="324" /&gt;&lt;/P&gt;&lt;P&gt;When i use right join between the tables, i see the following result:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="157077" alt="3.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/157077_3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both times, individual sales values are same. But, total sales values are different.&lt;/P&gt;&lt;P&gt;Which approach we should follow in business scenarios? Which one is correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i use Applymap, like this&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="157084" alt="4.PNG" class="jive-image image-6" height="259" src="https://community.qlik.com/legacyfs/online/157084_4.PNG" style="height: 258.77px; width: 355px;" width="355" /&gt;&lt;/P&gt;&lt;P&gt;There is no Product B information is coming in the result:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="157082" alt="5.PNG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/157082_5.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is Applymap not recommended in 1-N scenarios?&lt;/P&gt;&lt;P&gt;Also attached the QVW file. Please do the needful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhakar Vammi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prabhakar Vammi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 09:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keep-Join-and-Applymap-in-1-N-scenarios-Which-is-correct/m-p/1258336#M397282</guid>
      <dc:creator>Prabhu</dc:creator>
      <dc:date>2017-03-22T09:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Keep, Join and Applymap in 1-N scenarios. Which is correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Keep-Join-and-Applymap-in-1-N-scenarios-Which-is-correct/m-p/1258337#M397283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ApplyMap() is a good alternative and in your case is not showing B because you don't have Region "South" in your INLINE "Table3" table according to your post. KEEP is the fastest option, but since it reduces data, better to be sure you are not missing anything. JOIN works pretty much as the SQL JOINs work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: The use you are doing of ApplyMap() is &lt;EM&gt;n:m&lt;/EM&gt;, because values in Region are several times on both Table3 and Budget. Perhaps you need a double ApplyMap() or a key to make it &lt;EM&gt;1:n&lt;/EM&gt; ? Still, there is no "South" so definitely the "Unknown" in the chart is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 10:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keep-Join-and-Applymap-in-1-N-scenarios-Which-is-correct/m-p/1258337#M397283</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-03-22T10:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Keep, Join and Applymap in 1-N scenarios. Which is correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Keep-Join-and-Applymap-in-1-N-scenarios-Which-is-correct/m-p/1258338#M397284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel, Could you please tell me why is the difference in Total Sales(keep and join)? Which one we should use in real business scenarios?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 10:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keep-Join-and-Applymap-in-1-N-scenarios-Which-is-correct/m-p/1258338#M397284</guid>
      <dc:creator>Prabhu</dc:creator>
      <dc:date>2017-03-22T10:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Keep, Join and Applymap in 1-N scenarios. Which is correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Keep-Join-and-Applymap-in-1-N-scenarios-Which-is-correct/m-p/1258339#M397285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define which business scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to reduce the set of rows because those are will not being used, then use KEEP. There might be other cases where you need to use JOIN instead, and ApplyMap() is also a good idea to avoid adding rows but adding columns instead when you have this small tables with two columns (for example, key and description, client id and name, etc.).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 10:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keep-Join-and-Applymap-in-1-N-scenarios-Which-is-correct/m-p/1258339#M397285</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-03-22T10:31:34Z</dc:date>
    </item>
  </channel>
</rss>

