<?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 function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477641#M1131137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dhiraj.&lt;/P&gt;&lt;P&gt;Have a look at this blog:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/" title="http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/"&gt;http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be able to clarify a few things for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2013 12:01:09 GMT</pubDate>
    <dc:creator>ngulliver</dc:creator>
    <dc:date>2013-11-22T12:01:09Z</dc:date>
    <item>
      <title>Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477638#M1131134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a bit confused in maping function. So can any one give me a example of mapping functions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;D J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 09:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477638#M1131134</guid>
      <dc:creator />
      <dc:date>2013-11-22T09:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477639#M1131135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is from Qlikview help &amp;amp; reference manual &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping:&lt;/P&gt;&lt;P&gt;1. Mapping prefix is used before a select or load statement for mapping certain field value/expression to the values in the first column of mapping table.&lt;/P&gt;&lt;P&gt;2. Mapping table consists of 2 columns, first containing teh comparison values and second containing the desired mapping values.&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;Map1:&lt;/P&gt;&lt;P&gt;Mapping load * Inline [&lt;/P&gt;&lt;P&gt;x,y&lt;/P&gt;&lt;P&gt;US,United States&lt;/P&gt;&lt;P&gt;U.S, USA&lt;/P&gt;&lt;P&gt;America, United States Of America&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you can use 'Applymap' function to retrieve the values&lt;BR /&gt;Applymap ('map1', US) returns United States&lt;/P&gt;&lt;P&gt;Applymap('map1', U.S.) returns USA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: One more point about mapping tables is they will be stored temporarily in the memory and will be dropped automatically after script execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 09:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477639#M1131135</guid>
      <dc:creator />
      <dc:date>2013-11-22T09:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477640#M1131136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dhiraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically Mapping Function, consists of 2 things.&lt;/P&gt;&lt;P&gt;1. Mapping Load&lt;/P&gt;&lt;P&gt;2. ApplyMap()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Mapping Load, is nothing but a table (to map another &lt;STRONG&gt;Table(Inline Table) &lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Condition:-&amp;nbsp; * Mapping load table should contain only 2 fields, 1)MapID&amp;nbsp;&amp;nbsp; 2)MapValue.&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; * Mapping load table should load before than Applymap() function.&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; &lt;/P&gt;&lt;P&gt;* Apply Map() is a function (where applying mapping function on table(&lt;STRONG&gt;Database Table&lt;/STRONG&gt;)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:--&lt;/P&gt;&lt;P&gt;I have table name "Emp", it has a field name "Gender", values on the field are M &amp;amp; F&lt;/P&gt;&lt;P&gt;where M = Male, F = Female.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:--&lt;/P&gt;&lt;P&gt;GenderTable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mapping Load&lt;/STRONG&gt; * inline [&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this is an inline table, need to add Mapping before Load statement&lt;/P&gt;&lt;P&gt;MapID, MapValue&lt;/P&gt;&lt;P&gt;M, Male&lt;/P&gt;&lt;P&gt;F, Female&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Emp:&lt;/P&gt;&lt;P&gt;load EmpName,&lt;/P&gt;&lt;P&gt;Salary,&lt;/P&gt;&lt;P&gt;Gender&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ApplyMap('GenderTable', Gender) as Gender_Desc&amp;nbsp; //&lt;/STRONG&gt;applying the mapping values to this table using Applymap()&lt;/P&gt;&lt;P&gt;From********;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Mark as correct answer and let others know about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 11:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477640#M1131136</guid>
      <dc:creator />
      <dc:date>2013-11-22T11:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477641#M1131137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dhiraj.&lt;/P&gt;&lt;P&gt;Have a look at this blog:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/" title="http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/"&gt;http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be able to clarify a few things for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 12:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477641#M1131137</guid>
      <dc:creator>ngulliver</dc:creator>
      <dc:date>2013-11-22T12:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477642#M1131138</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;I think it's about the use and not the syntax, so my best example is a customername.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our orders and deliverynotes and invoices and pricelist and .. and ... we only have a key to the right customer but not its name.&lt;/P&gt;&lt;P&gt;So when I work with those tables I firstly load the mapping-table with the customer code and name (starting from the table customers)&lt;/P&gt;&lt;P&gt;After that I load the other tables with somthing like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Applymap ('MapCustomerName', customer_code) AS&amp;nbsp; customer_name &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way your database does not have to have the customername in every 200 orders,invoices,..... this client has.&lt;/P&gt;&lt;P&gt;Same logic goes for names, addresses, phonenrs. ...... of articles, suppliers, ... and I was told it's better than joining tables if you only need 1 or 2 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 12:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477642#M1131138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-22T12:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477643#M1131139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 12:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-function/m-p/477643#M1131139</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-11-22T12:25:08Z</dc:date>
    </item>
  </channel>
</rss>

