<?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: Mapping Load / Apply Map versus Left Join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166660#M38533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an advantage from the user's perspective: applymap allows for specifying a value for unmatched values. Left/outer joins will not let you drillthrough by the null values (you can specify something other than '-' but QV still does not allow for filtering on this value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, I typically use both an outer join and the applymap: I outer join the tables so I can get more than one field from the outer joined table; I use the applymap on one field from the outer joined table so I can use it as a list box for filtering and allow filtering for the unjoined rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example: we have patients enrollmented in programs; we make program specific calls to the patients. So, we have an enrollment table and call log table. The call log table has a field call type (values are "Success", "Unsuccessful"). Left outer join enrollments and call log. If a list box is created on the call type field, there will be three values: Success, Unsuccessful, -. "-" would be for all patients who have never had a call; I cannot filter by this to determine who these patients are. If I create separate applymap, I can specificy "Not Called" as the unjoined mapping value, so my list box would have: success, unsuccessful, and not called as values. I can now filter by not called to determine the patients who have not been called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense... kind of peripatetic answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2011 20:25:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-08T20:25:16Z</dc:date>
    <item>
      <title>Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166653#M38526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mapping Load / Apply Map was functionality which was shown to us during our initial training session with QlikTech many moons ago but it is not something that I have used within my scripts instead using left joins to get say description of a code into my QVD table.&lt;/P&gt;&lt;P&gt;Not really sure what the benefits or differences are between using mapping and left joins and would be grateful if someone could elaborate on this for me...&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 16:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166653#M38526</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-08-18T16:22:01Z</dc:date>
    </item>
    <item>
      <title>Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166654#M38527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone got any feedback on this one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 22:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166654#M38527</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-08-20T22:06:08Z</dc:date>
    </item>
    <item>
      <title>Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166655#M38528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect the main difference (other than aesthetic) would be performance, but I haven't done any performance testing to back that up. I would guess that mapping loads are a typically a little faster, but that's pure speculation.&lt;/P&gt;&lt;P&gt;One advantage of mapping loads is that you can use the mapped value immediately, rather than waiting for a second left join. For instance, let's say you're loading a unit price from one table, and a quantity from another table, and want your resulting table to have unit price, quantity AND total price. With a mapping load, you can set up the price table as a map with one load, an in a second load, applymap once to get the unit price, and applymap again when calculating the total price. With left joins, you first need to load and join both tables, then do a final left join to calculate the total price. So you save a load by using a mapping table here, which probably saves time.&lt;/P&gt;&lt;P&gt;You can also apply a whole lot of maps all in the same load, rather than one by one left joining each new table onto the main table. Again, I strongly suspect the mapping load approach would be faster when you have more than one like this. But again, I haven't performance tested it, so I can't say for sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 23:47:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166655#M38528</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-08-20T23:47:23Z</dc:date>
    </item>
    <item>
      <title>Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166656#M38529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i assume that if you have to add multiple fields from an other table than i would prefer JOIN.&lt;/P&gt;&lt;P&gt;If i want to set a default Value if a field is missing i would use APPLYMAP. Also if i would calculate a new field or to use as part of a WHERE (also in COMBINATION with EXISTS) clause, APPLYMAP would be my first choice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 23:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166656#M38529</guid>
      <dc:creator />
      <dc:date>2010-08-20T23:59:06Z</dc:date>
    </item>
    <item>
      <title>Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166657#M38530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I strongly prefer using apply map. When you have a long mapping list and for some reason there's duplicate entries and you do a left join you will multiply the number of records. Apply map is therefore the 'safer' solution.&lt;/P&gt;&lt;P&gt;Here's an interesting read on peformance of apply map vs. using simple if statements.&lt;/P&gt;&lt;P&gt;&lt;A href="http://guerrillabi.com/Mapping_Load_vs._Apply_Map_vs._If"&gt;http://guerrillabi.com/Mapping_Load_vs._Apply_Map_vs._If&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Aug 2010 14:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166657#M38530</guid>
      <dc:creator />
      <dc:date>2010-08-21T14:47:18Z</dc:date>
    </item>
    <item>
      <title>Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166658#M38531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Lukas Ickerott wrote: Here's an interesting read on peformance of apply map vs. using simple if statements.&lt;BR /&gt;&lt;A href="http://guerrillabi.com/Mapping_Load_vs._Apply_Map_vs._If"&gt;http://guerrillabi.com/Mapping_Load_vs._Apply_Map_vs._If&lt;/A&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;From the linked analysis, "The table join method is discarded on forehand because it will run though every row in the loaded table."&lt;/P&gt;&lt;P&gt;This appears to have been a mistake. We are loading from QVDs, and therefore there is a significant performance benefit to keeping the load optimized. A left join keeps the load optimized. All tested mapping methods BREAK the optimization. This matters. It turns out that a left join is the fastest option for a small number of mapping tables, at least for my sample data (5,000,000 rows, ID field, 10 other fields with values from 0 to 3).&lt;/P&gt;&lt;P&gt;An additional group of options that wasn't tested was doing an optimized load, THEN doing a left join with mapping. It turns out that none of these approaches were competitive, but they seemed worth testing.&lt;/P&gt;&lt;P&gt;For a larger number of mapping tables, the fastest approach appears to be breaking the optimization and using a MAP USING.&lt;/P&gt;&lt;P&gt;Also, the if() does seem very fast, as Seebach noted in his analysis. I would not have expected that. And applymap() is, to me anyway, shockingly slow. I will probably use it less often in the future.&lt;/P&gt;&lt;P&gt;Here's the raw data:&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/5342.Mapping.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/5342.Mapping.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And assuming the trend is linear, as I suspect:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3683.Mapping2.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3683.Mapping2.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 21:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166658#M38531</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-08-23T21:29:01Z</dc:date>
    </item>
    <item>
      <title>Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166659#M38532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; interesting topic lost....can any developer of the tool or anyone who knows the working algo of the applymap explain the flow of its working and thereof where and when it to be appropriately used. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 20:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166659#M38532</guid>
      <dc:creator />
      <dc:date>2011-05-09T20:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166660#M38533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an advantage from the user's perspective: applymap allows for specifying a value for unmatched values. Left/outer joins will not let you drillthrough by the null values (you can specify something other than '-' but QV still does not allow for filtering on this value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, I typically use both an outer join and the applymap: I outer join the tables so I can get more than one field from the outer joined table; I use the applymap on one field from the outer joined table so I can use it as a list box for filtering and allow filtering for the unjoined rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example: we have patients enrollmented in programs; we make program specific calls to the patients. So, we have an enrollment table and call log table. The call log table has a field call type (values are "Success", "Unsuccessful"). Left outer join enrollments and call log. If a list box is created on the call type field, there will be three values: Success, Unsuccessful, -. "-" would be for all patients who have never had a call; I cannot filter by this to determine who these patients are. If I create separate applymap, I can specificy "Not Called" as the unjoined mapping value, so my list box would have: success, unsuccessful, and not called as values. I can now filter by not called to determine the patients who have not been called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense... kind of peripatetic answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 20:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166660#M38533</guid>
      <dc:creator />
      <dc:date>2011-06-08T20:25:16Z</dc:date>
    </item>
    <item>
      <title>Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166661#M38534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Though&amp;nbsp; , i am not&amp;nbsp; proficient in Qlikview as the reply we receive from&amp;nbsp; above users. &lt;/P&gt;&lt;P&gt;But&amp;nbsp; difference ipersonnel felt is listed below :&lt;/P&gt;&lt;P&gt;1 . Mapping table&amp;nbsp; is&amp;nbsp; table which is&amp;nbsp; only available during reloading of data. Itsapplicable to tables where only 2 fields are present&amp;nbsp; i:e&amp;nbsp; tablesof this format can only be mapped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; It's&amp;nbsp; Temporarytable which get&amp;nbsp; terminated automatically as&amp;nbsp; the script execution get completed. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use themapping&amp;nbsp; field&amp;nbsp; in&amp;nbsp; Nnumber of&amp;nbsp; tables&amp;nbsp; with the Apply Map function. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This&amp;nbsp; takes less time in comparison to Join as&amp;nbsp;&amp;nbsp; tablefields is coming directly while reloading. &lt;/P&gt;&lt;P&gt; 2. In Join&amp;nbsp; you have to fetch data from tables which arepresent on&amp;nbsp; Disk or any other storage. Thistakes&amp;nbsp; Little more time in comparisonto&amp;nbsp; Mapping&amp;nbsp; tables.&lt;/P&gt;&lt;P&gt; Advantage is when youhave more than 2&amp;nbsp; filed which has tojoined in tables . Apply map can not be used in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 10:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166661#M38534</guid>
      <dc:creator />
      <dc:date>2011-06-09T10:34:30Z</dc:date>
    </item>
    <item>
      <title>Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166662#M38535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In applymap u will not get the common fieldname but in the left join u will get the common field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;1 table consist two columns : 1.Country&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.Capital.&lt;/P&gt;&lt;P&gt;2 table consist two columns: 1.Capital&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.New Capital.&lt;/P&gt;&lt;P&gt;now writing left join between these two tables will give you three columns:Country,Capital,New Capital&lt;/P&gt;&lt;P&gt;but using apply map will give you two columns:Country,NewCapital&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope u will get clear by this...&lt;/P&gt;&lt;P&gt;puneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 18:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166662#M38535</guid>
      <dc:creator />
      <dc:date>2011-06-10T18:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166663#M38536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are wrong puneet. We can still get the common filed column in the new consolidated table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 19:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166663#M38536</guid>
      <dc:creator />
      <dc:date>2014-06-10T19:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166664#M38537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I want to share an additional benefit that I found in the ApplyMap if compared with the left join when modifying a script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Imagine that you have the Color Code in your table and one day you decide to add the description that is in the color table. If you use a left join you risk to add additional records if for any reason there are duplicates in your Color table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;By using the applymap you limit your testing after the change because you are 100% sure that you are not adding additional records even if there are duplicates in your color table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I agree with you that you should not have duplicates in your Color table but if instead of the Color is any other Excel table maintained by users without validation the applymap will become less risky.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 19:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/166664#M38537</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2014-06-10T19:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/2037598#M1222589</link>
      <description>&lt;P&gt;the link is dead, here is the saved copy&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 09:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/2037598#M1222589</guid>
      <dc:creator>AnandKu</dc:creator>
      <dc:date>2023-02-14T09:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/2037793#M1222594</link>
      <description>&lt;P&gt;Here an update to the matter:&lt;/P&gt;
&lt;P&gt;let start = now();&lt;BR /&gt;t: load recno() as ID, mod(recno(), 4) as Status, chr(ceil(rand() * 127)) &amp;amp; chr(ceil(rand() * 127)) as X&lt;BR /&gt;autogenerate 75000000; &lt;BR /&gt;let noRows = noofrows('t'); let end = now(); let time = time('$(end)' - '$(start)'); trace '$(time)';&lt;BR /&gt;c: load $(noRows) as Records, -1 as No, 'raw-data load' as Type, '$(end)' as End, '$(start)' as Start, '$(time)' as Time autogenerate 1;&lt;/P&gt;
&lt;P&gt;let start = now();&lt;BR /&gt;store t into Dummy.qvd (qvd); drop tables t; &lt;BR /&gt;let end = now(); let time = time('$(end)' - '$(start)'); trace '$(time)';&lt;BR /&gt;c: load 0 as Records, 0 as No, 'raw-data store' as Type, '$(end)' as End, '$(start)' as Start, '$(time)' as Time autogenerate 1;&lt;/P&gt;
&lt;P&gt;m: mapping load recno() - 1 as Status, chr(recno()+64) as Return autogenerate 4;&lt;BR /&gt;l: load recno() - 1 as Status, chr(recno()+64) as Return autogenerate 4;&lt;/P&gt;
&lt;P&gt;let start = now();&lt;BR /&gt;t: load * from Dummy.qvd (qvd);&lt;BR /&gt;let noRows = noofrows('t'); let end = now(); let time = time('$(end)' - '$(start)'); drop tables t; trace '$(time)';&lt;BR /&gt;c: load $(noRows) as Records, 1 as No, 'no processing' as Type, '$(end)' as End, '$(start)' as Start, '$(time)' as Time autogenerate 1;&lt;/P&gt;
&lt;P&gt;let start = now();&lt;BR /&gt;t: load *, applymap('m', Status) as StatusX from Dummy.qvd (qvd);&lt;BR /&gt;let noRows = noofrows('t'); let end = now(); let time = time('$(end)' - '$(start)'); drop tables t; trace '$(time)';&lt;BR /&gt;c: load $(noRows) as Records, 2 as No, 'applymap' as Type, '$(end)' as End, '$(start)' as Start, '$(time)' as Time autogenerate 1;&lt;/P&gt;
&lt;P&gt;map Status using m; &lt;BR /&gt;let start = now();&lt;BR /&gt;t: load * from Dummy.qvd (qvd);&lt;BR /&gt;let noRows = noofrows('t'); let end = now(); let time = time('$(end)' - '$(start)'); drop tables t; trace '$(time)';&lt;BR /&gt;c: load $(noRows) as Records, 3 as No, 'map using' as Type, '$(end)' as End, '$(start)' as Start, '$(time)' as Time autogenerate 1;&lt;BR /&gt;unmap *;&lt;/P&gt;
&lt;P&gt;let start = now();&lt;BR /&gt;t: load *, pick(Status - 1, 'A', 'B', 'C', 'D') as StatusX from Dummy.qvd (qvd);&lt;BR /&gt;let noRows = noofrows('t'); let end = now(); let time = time('$(end)' - '$(start)'); drop tables t; trace '$(time)';&lt;BR /&gt;c: load $(noRows) as Records, 4 as No, 'pick' as Type, '$(end)' as End, '$(start)' as Start, '$(time)' as Time autogenerate 1;&lt;/P&gt;
&lt;P&gt;let start = now();&lt;BR /&gt;t: load * from Dummy.qvd (qvd); left join(t) load * resident l;&lt;BR /&gt;let noRows = noofrows('t'); let end = now(); let time = time('$(end)' - '$(start)'); drop tables t; trace '$(time)';&lt;BR /&gt;c: load $(noRows) as Records, 5 as No, 'join' as Type, '$(end)' as End, '$(start)' as Start, '$(time)' as Time autogenerate 1;&lt;/P&gt;
&lt;P&gt;drop table l;&lt;/P&gt;
&lt;P&gt;which results in:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marcus_sommer_0-1676384053632.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100472iE3BA70E10CA72A9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marcus_sommer_0-1676384053632.png" alt="marcus_sommer_0-1676384053632.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;whereby the if-loop from the origin example was replaced by a pick() approach and no artificial where-clause is applied for the map using load because it's not needed anymore (maybe it was a bug within the old releases or Qlik changed the processing). To mention is further that the results has some differences between multiple runs of about 10 - 15 seconds to each one of the approaches which means that my system/network-storage has some external impacts. Without measuring&amp;nbsp; each run I think the showed results is quite the average.&lt;/P&gt;
&lt;P&gt;I must admit that I had expected bigger differences between the methods especially for more run-time benefits of the applymap(). Beside this the test is very simplified and with more complex data and requirements the run-time comparing may be quite different.&lt;/P&gt;
&lt;P&gt;In my real life I use meanwhile nearly always mappings whereby not seldom multiple ones horizontally and vertically nested (both in lookups as well as by the returns) and they work very well and fast - better as all the other approaches before.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 14:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/2037793#M1222594</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-02-14T14:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/2037799#M1222595</link>
      <description>&lt;P&gt;I would use the apply map for business values that are not standardized that have to managed manually or through spreadsheets, and left join if the business logic is coming from a static source like a database or API.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The apply map also allows you to handle exceptions in a single line of code that's easy to understand.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 15:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/2037799#M1222595</guid>
      <dc:creator>crgrossman</dc:creator>
      <dc:date>2023-02-14T15:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/2435533#M1225540</link>
      <description>&lt;P&gt;Going through the thread, one difference that hasn't been highlighted is that if you have duplicate values in your second table (let's call it table 'B') and have values assigned to those duplicates,&lt;/P&gt;
&lt;P&gt;when using left join you will see all those values appended into your original table 'A'.&lt;/P&gt;
&lt;P&gt;If you use a mapping load the duplicate values will not show up in table 'A' and only one row will be appended from table 'B' - it will pick the first one it sees and you'll only see that one value in the 'A' table.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 10:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/2435533#M1225540</guid>
      <dc:creator>Ally</dc:creator>
      <dc:date>2024-03-28T10:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Load / Apply Map versus Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/2487539#M1226189</link>
      <description>&lt;P&gt;I doubt that observation,&amp;nbsp;&lt;BR /&gt;using applyMap function also we can get 3 columns -&amp;nbsp;&lt;SPAN&gt;Country,Capital,New Capital&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 04:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Load-Apply-Map-versus-Left-Join/m-p/2487539#M1226189</guid>
      <dc:creator>koustubh</dc:creator>
      <dc:date>2024-10-17T04:48:55Z</dc:date>
    </item>
  </channel>
</rss>

