<?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 Apply map function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Apply-map-function/m-p/995524#M974504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am new to qlikview. Can anyone help me the use of Apply map function and where exactly we use this function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2015 10:39:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-08T10:39:16Z</dc:date>
    <item>
      <title>Apply map function</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-map-function/m-p/995524#M974504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am new to qlikview. Can anyone help me the use of Apply map function and where exactly we use this function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-map-function/m-p/995524#M974504</guid>
      <dc:creator />
      <dc:date>2015-09-08T10:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Apply map function</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-map-function/m-p/995525#M974505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from QlikView help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The &lt;SPAN class="Bold"&gt;ApplyMap&lt;/SPAN&gt; function is used for mapping any expression to a previously loaded mapping table. The syntax is:&lt;/EM&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;EM&gt;&lt;A name="kanchor836"&gt;&lt;/A&gt;&lt;A name="applymap"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;applymap(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;'mapname', expr [ , defaultexpr ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Italic"&gt;mapname&lt;/SPAN&gt; is the name of a mapping table that has previously been created through the &lt;SPAN class="Bold"&gt;mapping load&lt;/SPAN&gt; or the &lt;SPAN class="Bold"&gt;mapping select&lt;/SPAN&gt; statement (see &lt;A class="MCXref_0"&gt;Mapping&lt;/A&gt;). Its name must be enclosed by single, straight &lt;A class="MCXref_0"&gt;Quotation Marks in Scripting&lt;/A&gt;. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Italic"&gt;expr&lt;/SPAN&gt; is the expression, the result of which should be mapped. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Italic"&gt;defaultexpr&lt;/SPAN&gt; is an optional expression which will be used as a default mapping value if the mapping table does not contain a matching value for &lt;SPAN class="Italic"&gt;expr&lt;/SPAN&gt;. If no default value is given, the value of &lt;SPAN class="Italic"&gt;expr&lt;/SPAN&gt; will be returned as is. &lt;/EM&gt;&lt;/P&gt;&lt;P class="example"&gt;&lt;EM&gt;Examples:&lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;// Assume the following mapping table: &lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;map1: &lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;mapping load * inline [ &lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;x, y &lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;1, one &lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;2, two &lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;3, three ] ; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 2 )&lt;/SPAN&gt; returns ' two'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 4 )&lt;/SPAN&gt; returns 4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 5, 'xxx')&lt;/SPAN&gt; returns 'xxx'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 1, 'xxx')&lt;/SPAN&gt; returns 'one'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 5, null( ) )&lt;/SPAN&gt; returns NULL&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 3, null( ) )&lt;/SPAN&gt; returns 'three'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4125"&gt;Mapping as an Alternative to Joining&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4267"&gt;Data Cleansing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2756"&gt;Don't join - use Applymap instead&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 23:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-map-function/m-p/995525#M974505</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-08T23:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Apply map function</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-map-function/m-p/995526#M974506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Check these links. It will help you. Thank you.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&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 style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Mapping Load and Applymap()&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Mapping Load helps you to look up a single value from another table. By using Mapping Load&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;we can avoid the Joins, sometimes joins cause the records duplication and performance problems. A&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;mapping table consists of two columns; a comparison field (input) and a mapping value field (output).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In this example we have a table of orders (Orders), and need to know the country of the&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;customer, which is stored in the customer table (Customers).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Orders Table:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;OrderID OrderDate ShipperID Freight CustomerID&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1 10/24/2014 100 75 1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2 10/25/2014 101 65 2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Customers Table:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;CustomerID Customer&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1 IBM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2 TCS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Script:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//Load Customer master table with Mapping keyword&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;CustomersMapping:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Mapping Load&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;CustomerID,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Customer&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM Customers;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//Load Orders table using ApplyMap() to look up Customer name by using CustomerID&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Orders:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;*,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ApplyMap(‘CustomerMapping’, CustomerID, ‘N/A’) AS Customer&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM Orders;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Result Table:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;OrderID OrderDate ShipperID Freight CustomerID Customer&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1 10/24/2014 100 75 1 IBM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2 10/25/2014 101 65 2 TCS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 00:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-map-function/m-p/995526#M974506</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-09-09T00:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Apply map function</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-map-function/m-p/995527#M974507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;main use of apply map function is mapp the field names from mapping table from mapped table and mapping table must having the 2 fields only one field must be key field this is the disadvantage of mapping... by using mapping we avoid the joins in datamodel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 04:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-map-function/m-p/995527#M974507</guid>
      <dc:creator>pratap6699</dc:creator>
      <dc:date>2015-09-09T04:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Apply map function</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-map-function/m-p/995528#M974508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone for the valuable information. Much appreciated.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 07:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-map-function/m-p/995528#M974508</guid>
      <dc:creator />
      <dc:date>2015-09-09T07:10:49Z</dc:date>
    </item>
  </channel>
</rss>

