<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306933#M1180196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will the default value be specified previously in the script? If not, where does it come from? How does the program recognize it as the default value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can the default value be a numerical value (eg 8), or is it always a text value (eg (xzy) (abc)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 07:44:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-02-22T07:44:03Z</dc:date>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306929#M1180188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-left: 30pt;"&gt;The following is directly from the HELP MENU&lt;STRONG&gt; of Qlikview:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 30pt;"&gt;&lt;SPAN style="color: black; font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;// Assume the following mapping table:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 30pt;"&gt;&lt;SPAN style="color: black; font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;map1:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 30pt;"&gt;&lt;SPAN style="color: black; font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;mapping load * inline [&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 30pt;"&gt;&lt;SPAN style="color: black; font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;x, y&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 30pt;"&gt;&lt;SPAN style="color: black; font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;1, one&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 30pt;"&gt;&lt;SPAN style="color: black; font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;2, two&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 30pt;"&gt;&lt;SPAN style="color: black; font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;3, three ] ;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 60pt; width: 450px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="51%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;ApplyMap ( 'map1', 2 ) &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="23%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;returns&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="12%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;' two' &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="51%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;ApplyMap ( 'map1', 4 ) &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="23%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;returns&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="12%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;4 &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="51%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;ApplyMap ( 'map1', 5, 'xxx' ) &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="23%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;returns&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="12%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;'xxx'&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="51%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;ApplyMap ( 'map1', 1, 'xxx' ) &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="23%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;returns&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="12%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;'one' &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="51%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;ApplyMap ( 'map1', 5, null( ) ) &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="23%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;returns&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="12%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;NULL &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="51%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;ApplyMap ( 'map1', 3, null( ) ) &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="23%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;returns&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="12%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;'three' &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHY does the following return as 'xxx', or why does not return as NULL?&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 60pt;" width="450"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="51%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;ApplyMap ( 'map1', 5, 'xxx' ) &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="23%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;returns&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="12%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;'xxx'&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Why does each of the ApplyMap only return a single value, such as the following? Will it always return the first value it reads or recognizes?&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 60pt;" width="450"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="51%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;ApplyMap ( 'map1', 1, 'xxx' ) &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="23%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;returns&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 5.25pt;" valign="top" width="12%"&gt; &lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;'one' &lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 07:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306929#M1180188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-22T07:14:24Z</dc:date>
    </item>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306930#M1180190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.ApplyMap ( 'map1', 5, 'xxx' ) returns 'xxx' only because you don't have the value 5 in the map1 mapping table.if you wrote the expression as ApplyMap ( 'map1', 5) then it returns null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Yes.It returns single value only.It look for the given value 1 in field x of the mapping table if matched then it returns the corresponding y field value.if not found it looks for the next parameter in applymap('map1',1&lt;STRONG&gt;,'xxx'&lt;/STRONG&gt;) (the bold one) which is optional.If you specified it returns the given value otherwise returns null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 07:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306930#M1180190</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-22T07:21:31Z</dc:date>
    </item>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306931#M1180192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'xxx' doesn't exist in the mapping table either, so why does it return instead of NULL?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 07:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306931#M1180192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-22T07:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306932#M1180195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Third parameter is not to look up in mapping table its to display if there is no match then return this value instead of null.Its like default value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 07:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306932#M1180195</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-22T07:31:04Z</dc:date>
    </item>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306933#M1180196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will the default value be specified previously in the script? If not, where does it come from? How does the program recognize it as the default value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can the default value be a numerical value (eg 8), or is it always a text value (eg (xzy) (abc)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 07:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306933#M1180196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-22T07:44:03Z</dc:date>
    </item>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306934#M1180197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I just told default value as example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap Syntax is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap(MapptableName,value to look up in table&lt;STRONG&gt;[,value if not match]&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to specify the value here in the optional parameter(Bold part) it returns the optional value if there is no match.If not specified then it consider as null value so it returns null if no match found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap ( 'map1', 5, 'xxx' ) returns 'xxx'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap ( 'map1', 5) returns NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap ( 'map1', 1, 'xxx' ) returns 'one'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap ( 'map1', 1 ) also returns 'one'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 07:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306934#M1180197</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-22T07:52:04Z</dc:date>
    </item>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306935#M1180198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it, Thanks so much for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 08:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/306935#M1180198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-22T08:01:21Z</dc:date>
    </item>
  </channel>
</rss>

