<?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 can anyone explain the mapping() and applymap() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/can-anyone-explain-the-mapping-and-applymap/m-p/860100#M1016085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anyone explain the mapping() and apply-map()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 19:10:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-17T19:10:39Z</dc:date>
    <item>
      <title>can anyone explain the mapping() and applymap()</title>
      <link>https://community.qlik.com/t5/QlikView/can-anyone-explain-the-mapping-and-applymap/m-p/860100#M1016085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anyone explain the mapping() and apply-map()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 19:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-anyone-explain-the-mapping-and-applymap/m-p/860100#M1016085</guid>
      <dc:creator />
      <dc:date>2015-04-17T19:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone explain the mapping() and applymap()</title>
      <link>https://community.qlik.com/t5/QlikView/can-anyone-explain-the-mapping-and-applymap/m-p/860101#M1016086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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>Fri, 17 Apr 2015 19:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-anyone-explain-the-mapping-and-applymap/m-p/860101#M1016086</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-04-17T19:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone explain the mapping() and applymap()</title>
      <link>https://community.qlik.com/t5/QlikView/can-anyone-explain-the-mapping-and-applymap/m-p/860102#M1016087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView has a good help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;&lt;A name="kanchor835"&gt;&lt;/A&gt;Mapping Functions&lt;/H1&gt;&lt;P&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;/P&gt;&lt;P class="syntax"&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;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&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;&lt;EM&gt;Mapping&lt;/EM&gt;&lt;/A&gt;). Its name must be enclosed by single, straight &lt;A class="MCXref_0"&gt;&lt;EM&gt;Quotation Marks in Scripting&lt;/EM&gt;&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;expr&lt;/SPAN&gt; is the expression, the result of which should be mapped. &lt;/P&gt;&lt;P&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;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;// Assume the following mapping table: &lt;/P&gt;&lt;P class="Code"&gt;map1: &lt;/P&gt;&lt;P class="Code"&gt;mapping load * inline [ &lt;/P&gt;&lt;P class="Code"&gt;x, y &lt;/P&gt;&lt;P class="Code"&gt;1, one &lt;/P&gt;&lt;P class="Code"&gt;2, two &lt;/P&gt;&lt;P class="Code"&gt;3, three ] ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 2 )&lt;/SPAN&gt; returns ' two'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 4 )&lt;/SPAN&gt; returns 4&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 5, 'xxx')&lt;/SPAN&gt; returns 'xxx'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 1, 'xxx')&lt;/SPAN&gt; returns 'one'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 5, null( ) )&lt;/SPAN&gt; returns NULL&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 3, null( ) )&lt;/SPAN&gt; returns 'three'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN class="Bold"&gt;MapSubstring&lt;/SPAN&gt; function is used to map parts of any expression to a previously loaded mapping table. The mapping is case sensitive and non-iterative and substrings are mapped from left to right. The syntax is:&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor837"&gt;&lt;/A&gt;&lt;A name="mapsubstring"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;mapsubstring(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;'mapname', expr&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;This function can be used for mapping parts of any expression on a previously loaded mapping table. The mapping is case sensitive and non-recursive. The substrings are mapped from the left to the right. &lt;SPAN class="Italic"&gt;Mapname&lt;/SPAN&gt; is the name of a mapping table previously read by a &lt;SPAN class="Bold"&gt;mapping load&lt;/SPAN&gt; or a &lt;SPAN class="Bold"&gt;mapping select&lt;/SPAN&gt; statement (see &lt;A class="MCXref_0"&gt;&lt;EM&gt;Mapping&lt;/EM&gt;&lt;/A&gt;). The name must be enclosed by single straight quotation marks. &lt;SPAN class="Italic"&gt;Expr&lt;/SPAN&gt; is the expression whose result should be mapped by substrings. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;// Assume the following mapping table: &lt;/P&gt;&lt;P class="Code"&gt;map1: &lt;/P&gt;&lt;P class="Code"&gt;mapping load * inline [ &lt;/P&gt;&lt;P class="Code"&gt;x, y &lt;/P&gt;&lt;P class="Code"&gt;1, &amp;lt;one&amp;gt; &lt;/P&gt;&lt;P class="Code"&gt;aa, XYZ &lt;/P&gt;&lt;P class="Code"&gt;x, b ] ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;MapSubstring ('map1', 'A123')&lt;/SPAN&gt; returns 'A&amp;lt;one&amp;gt;23'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;MapSubstring ('map1', 'baaar')&lt;/SPAN&gt; returns 'bXYZar'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;MapSubstring ('map1', 'xaa1')&lt;/SPAN&gt; returns 'bXYZ&amp;lt;one&amp;gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #808080;"&gt;&lt;SPAN class="PrimaryQVRelease"&gt;QlikView 11.20 SR10&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 20:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-anyone-explain-the-mapping-and-applymap/m-p/860102#M1016087</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-17T20:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone explain the mapping() and applymap()</title>
      <link>https://community.qlik.com/t5/QlikView/can-anyone-explain-the-mapping-and-applymap/m-p/860103#M1016088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping Load:&lt;/P&gt;&lt;P&gt;Mapping Tables are used in qlikview cleanup the data model&lt;/P&gt;&lt;P&gt;Table with just 2 columns can be removed and columns of that table can be mapped to another table&lt;/P&gt;&lt;P&gt;Mapping tables are stored in separate area in memory and used only as mapping tables during the script execution.After script execution they will be automatically dropped.&lt;/P&gt;&lt;P&gt;Apply map syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apply map('Table name',fieldname) as Newfield.&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;Shippers:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CompanyName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipperID;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Shippers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shipments:&lt;/P&gt;&lt;P&gt;LOAD CustomerID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmployeeID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LineNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipmentDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipperID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Shippers',ShipperID) as shipperkey;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Shipments;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;prabhas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2015 06:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-anyone-explain-the-mapping-and-applymap/m-p/860103#M1016088</guid>
      <dc:creator>prabhas277</dc:creator>
      <dc:date>2015-04-18T06:08:37Z</dc:date>
    </item>
  </channel>
</rss>

