<?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 Applymap returning the value you are looking up in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Applymap-returning-the-value-you-are-looking-up/m-p/239170#M89845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;Applymap works as follows :&lt;/P&gt;&lt;P&gt;It will return the value associated with the value of mapname in the mapping table that has previously been created through the &lt;A href="http://community.qlik.com/forums/QvenglMapping.htm"&gt;&lt;STRONG&gt;mapping&lt;/STRONG&gt;&lt;/A&gt; &lt;STRONG&gt;load&lt;/STRONG&gt; or the &lt;STRONG&gt;mapping select&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;// Assume the following mapping table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;map1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;mapping load * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;x, y&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;1, one&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;2, two&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;3, three ]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" class="hcp9" style="width:450px;" width="450"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="hcp10" style="width:51%;" valign="top" width="51%"&gt;&lt;P class="hcp11"&gt;&lt;STRONG&gt;ApplyMap ( 'map1', 2 )&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp10" style="width:23%;" valign="top" width="23%"&gt;&lt;P class="hcp11"&gt;returns&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp10" style="width:12%;" valign="top" width="12%"&gt;&lt;P class="hcp12" style="text-align: left"&gt;&lt;STRONG&gt;' two'&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="hcp10" style="width:51%;" valign="top" width="51%"&gt;&lt;P class="hcp11"&gt;&lt;STRONG&gt;ApplyMap ( 'map1', 4 )&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp10" style="width:23%;" valign="top" width="23%"&gt;&lt;P class="hcp11"&gt;returns&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp10" style="width:12%;" valign="top" width="12%"&gt;&lt;P class="hcp12" style="text-align: left"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;In case no value is there in the mapping table then it will return ta default value specified. Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" class="hcp9" style="width:450px;" width="450"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="hcp10" style="width:51%;" valign="top" width="51%"&gt;&lt;P class="hcp11"&gt;&lt;STRONG&gt;ApplyMap ( 'map1', 5, 'xxx' )&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp10" style="width:23%;" valign="top" width="23%"&gt;&lt;P class="hcp11"&gt;returns&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp10" style="width:12%;" valign="top" width="12%"&gt;&lt;P class="hcp12" style="text-align: left"&gt;'&lt;STRONG&gt;xxx'&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;If no default value is given, the value of &lt;EM&gt;expr&lt;/EM&gt; will be returned as is.&lt;/P&gt;&lt;P&gt;Please elaborate on your problem more in case it doesnt help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Poorva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2009 17:07:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-12T17:07:13Z</dc:date>
    <item>
      <title>Applymap returning the value you are looking up</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-returning-the-value-you-are-looking-up/m-p/239169#M89844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using applymap and for some reason the formula returns the value I am looking up in the mapping table not the value I want to get back from the right hand column in the mapping table.&lt;/P&gt;&lt;P&gt;I know the mapping table contains the value I am looking up.&lt;/P&gt;&lt;P&gt;Any Ideas on the possible cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 16:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-returning-the-value-you-are-looking-up/m-p/239169#M89844</guid>
      <dc:creator />
      <dc:date>2009-11-12T16:59:15Z</dc:date>
    </item>
    <item>
      <title>Applymap returning the value you are looking up</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-returning-the-value-you-are-looking-up/m-p/239170#M89845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;Applymap works as follows :&lt;/P&gt;&lt;P&gt;It will return the value associated with the value of mapname in the mapping table that has previously been created through the &lt;A href="http://community.qlik.com/forums/QvenglMapping.htm"&gt;&lt;STRONG&gt;mapping&lt;/STRONG&gt;&lt;/A&gt; &lt;STRONG&gt;load&lt;/STRONG&gt; or the &lt;STRONG&gt;mapping select&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;// Assume the following mapping table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;map1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;mapping load * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;x, y&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;1, one&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;2, two&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp7"&gt;&lt;STRONG&gt;3, three ]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" class="hcp9" style="width:450px;" width="450"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="hcp10" style="width:51%;" valign="top" width="51%"&gt;&lt;P class="hcp11"&gt;&lt;STRONG&gt;ApplyMap ( 'map1', 2 )&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp10" style="width:23%;" valign="top" width="23%"&gt;&lt;P class="hcp11"&gt;returns&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp10" style="width:12%;" valign="top" width="12%"&gt;&lt;P class="hcp12" style="text-align: left"&gt;&lt;STRONG&gt;' two'&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="hcp10" style="width:51%;" valign="top" width="51%"&gt;&lt;P class="hcp11"&gt;&lt;STRONG&gt;ApplyMap ( 'map1', 4 )&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp10" style="width:23%;" valign="top" width="23%"&gt;&lt;P class="hcp11"&gt;returns&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp10" style="width:12%;" valign="top" width="12%"&gt;&lt;P class="hcp12" style="text-align: left"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;In case no value is there in the mapping table then it will return ta default value specified. Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" class="hcp9" style="width:450px;" width="450"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="hcp10" style="width:51%;" valign="top" width="51%"&gt;&lt;P class="hcp11"&gt;&lt;STRONG&gt;ApplyMap ( 'map1', 5, 'xxx' )&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp10" style="width:23%;" valign="top" width="23%"&gt;&lt;P class="hcp11"&gt;returns&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp10" style="width:12%;" valign="top" width="12%"&gt;&lt;P class="hcp12" style="text-align: left"&gt;'&lt;STRONG&gt;xxx'&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;If no default value is given, the value of &lt;EM&gt;expr&lt;/EM&gt; will be returned as is.&lt;/P&gt;&lt;P&gt;Please elaborate on your problem more in case it doesnt help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Poorva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 17:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-returning-the-value-you-are-looking-up/m-p/239170#M89845</guid>
      <dc:creator />
      <dc:date>2009-11-12T17:07:13Z</dc:date>
    </item>
  </channel>
</rss>

