<?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: Difference between left join vs apply map in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674997#M1077413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric and Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your answers!&lt;/P&gt;&lt;P&gt;I will use Applymap then - the fact that the nr. of records never changes alone does make it seem the better option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Marcus&lt;/P&gt;&lt;P&gt;Concatenating the fields I want and splitting them again afterwards seems like a good idea. It's not really necessary in my case since I need a LOAD before creating the mapping_table anyway, so the mapping_load is just resident and quite fast even if done three times over, but in other scenarios, that may well be worth trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will&lt;EM&gt; &lt;/EM&gt;integrate that into a "How-to-document" I have so I remember those tricks and tweaks - like a "missing manual" of my own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jun 2017 07:54:44 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2017-06-19T07:54:44Z</dc:date>
    <item>
      <title>Difference between left join vs apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674989#M1077404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for my knowledge i want to know difference between left join and apply map &lt;/P&gt;&lt;P&gt;i know its good for optimization&lt;/P&gt;&lt;P&gt;but how ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 06:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674989#M1077404</guid>
      <dc:creator />
      <dc:date>2014-07-15T06:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between left join vs apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674990#M1077405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Navneet.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;A LEFT JOIN will result in a table consisting only of rows where the linking field values are represented in the first table. So if there is a unique value in the second table, it will not appear in the output table. &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;APPLYMAP will add a new field. If no match is found, you can put a default value but the field is still created. For instance, if you are trying to add a phone number field to a customer, if no match is found you still create the field and can insert a value to represent 'no phone number found'. &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;JOINs are very powerful as you can add many fields at once but not very efficient. Both reduce optimization but JOINS can cause serious delays if they are big datasets.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 08:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674990#M1077405</guid>
      <dc:creator>ngulliver</dc:creator>
      <dc:date>2014-07-15T08:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between left join vs apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674991#M1077406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A Join may result in more records than any of the original tables, whereas an ApplyMap never changes the number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 10:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674991#M1077406</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-07-15T10:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between left join vs apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674992#M1077407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just had a scenario in one of my scripts where I had a LEFT JOIN and in effect it did change the nr. of records, even with a LEFT JOIN. I used an Applymap instead and it works. It's also a lot more performant to add just one field, no?&lt;/P&gt;&lt;P&gt;I wonder - now I have a very similar scenario - currently the LEFT JOIN does not alter the nr. of records, but in future, who knows - but now I have to add three fields, so I would need three mapping_tables. Is Applymap still the better option here? Probably, no?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 06:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674992#M1077407</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-06-19T06:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between left join vs apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674993#M1077408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Join:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If used before &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;join&lt;/SPAN&gt; it specifies that a left join should be used. The resulting table will only contain combinations of field values from the raw data tables where the linking field values are represented in the first table. If used before &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;keep&lt;/SPAN&gt;, it specifies that the second raw data table should be reduced to its common intersection with the first table, before being stored in &lt;SPAN class="PrimaryGenericName"&gt;QlikView&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Applymap/Lookup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN class="statement"&gt;ApplyMap&lt;/SPAN&gt; script function is used for mapping the output of an expression to a previously loaded mapping table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 06:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674993#M1077408</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2017-06-19T06:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between left join vs apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674994#M1077410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sasi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That looks a lot like the help_file &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know what a LEFT JOIN should do - but it does not always work the way you think it should.&lt;/P&gt;&lt;P&gt;I usually prefer Applymap, even if I need to use several mapping_tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 07:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674994#M1077410</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-06-19T07:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between left join vs apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674995#M1077411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I almost never use joins if I can avoid it. Applymap is in most cases a better option. So I would probably use use Applymap also in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Left join removes records from table 2 that don’t have a match in table 1. But the "Left" doesn’t change the fact that a join duplicates records in table 1 that have multiple matches in table 2. So, a join still can create duplicates when you don’t want it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also &lt;A href="https://community.qlik.com/qlik-blogpost/2756"&gt;Don't join - use Applymap instead&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 07:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674995#M1077411</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2017-06-19T07:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between left join vs apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674996#M1077412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to Henric answer you could concat several mappings within a single one like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map:&lt;/P&gt;&lt;P&gt;mapping load Key, F1 &amp;amp; '|' &amp;amp; F2 &amp;amp; '|' &amp;amp; F3 resident AnySource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and split them with subfield() again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;load *, subfield(applymap('map', Key, '#NV'), '|', 1) as F1, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereby I have never checked if this kind of concatenated mapping is faster as several single ones but I assume it especially if the mapping-loads aren't quite small else are a bit bigger and takes some reload-times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 07:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674996#M1077412</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-06-19T07:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between left join vs apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674997#M1077413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric and Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your answers!&lt;/P&gt;&lt;P&gt;I will use Applymap then - the fact that the nr. of records never changes alone does make it seem the better option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Marcus&lt;/P&gt;&lt;P&gt;Concatenating the fields I want and splitting them again afterwards seems like a good idea. It's not really necessary in my case since I need a LOAD before creating the mapping_table anyway, so the mapping_load is just resident and quite fast even if done three times over, but in other scenarios, that may well be worth trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will&lt;EM&gt; &lt;/EM&gt;integrate that into a "How-to-document" I have so I remember those tricks and tweaks - like a "missing manual" of my own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 07:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674997#M1077413</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-06-19T07:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between left join vs apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674998#M1077414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/check.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 14:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/674998#M1077414</guid>
      <dc:creator>ysj</dc:creator>
      <dc:date>2018-01-17T14:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between left join vs apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/1617473#M1077415</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You don't have to create three mapping tables to get the fields through applymap.You can do it thought one mapping table like the below example.&lt;/P&gt;&lt;P&gt;Map Countries:&lt;/P&gt;&lt;P&gt;Mapping Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;Country Code,&lt;/P&gt;&lt;P&gt;Country name&amp;amp;'|'&amp;amp;Country Currency as Country data&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resident Country;&lt;/P&gt;&lt;P&gt;Customers_Tab:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Subfield(Applymap('Map Countries',Country Code,null()),'|',1) As Country Name,&lt;/P&gt;&lt;P&gt;Subfield(Applymap('Map Countries',Country Code,null()),'|',2) As Country Currency&lt;/P&gt;&lt;P&gt;Resident Customers;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 08:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-left-join-vs-apply-map/m-p/1617473#M1077415</guid>
      <dc:creator>himanshi</dc:creator>
      <dc:date>2019-08-28T08:57:03Z</dc:date>
    </item>
  </channel>
</rss>

