<?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 AW:Re: AW:Problems using ApplyMap function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171732#M41609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are getting null because you probably are applying the map on the map? As Ralf points, you need to separate map from data, then applymap on data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2009 22:59:19 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2009-12-02T22:59:19Z</dc:date>
    <item>
      <title>Problems using ApplyMap function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171727#M41604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! This is pretty simple, but it is giving me a lot of problems. Suppose the following map definition:&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;AAA, A&lt;/P&gt;&lt;P&gt;AA, A&lt;/P&gt;&lt;P&gt;A, A&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;Then I try to include a field in a straight table with the following calculation: applymap('map1',value), being value AAA, AA, or A. The thing here is that the function returns NULL.&lt;/P&gt;&lt;P&gt;Seams dull, but I can't make it work. Any help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilberto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 07:41:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171727#M41604</guid>
      <dc:creator />
      <dc:date>2009-12-02T07:41:24Z</dc:date>
    </item>
    <item>
      <title>AW:Problems using ApplyMap function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171728#M41605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;could you post an example, I cant find an error.&lt;/P&gt;&lt;P&gt;Regards Alex:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 14:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171728#M41605</guid>
      <dc:creator />
      <dc:date>2009-12-02T14:37:35Z</dc:date>
    </item>
    <item>
      <title>AW:Problems using ApplyMap function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171729#M41606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using ApplyMap('Map1','AAA') will give you 'A'. It seems to me that your inline map table should be A,AAA, A,AA and so.&lt;/P&gt;&lt;P&gt;(I leave the original post just for edit purposes, but forget about it)&lt;/P&gt;&lt;P&gt;When applying a map, you don't have to use if against a value, but agaist a &lt;STRONG&gt;field&lt;/STRONG&gt;, which means&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;ApplyMap('map1',x,'default value')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Will work as in your map, the name of the field you want to replace is "x". When "x" takes the value of "AAA" it will be replaced by "A" following your map. If no value is found in your map, "default value" as string will replace the actual value you are working with.&lt;/P&gt;&lt;P&gt;Hope it helps and sorry the misunderstanding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 14:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171729#M41606</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2009-12-02T14:55:23Z</dc:date>
    </item>
    <item>
      <title>AW:Problems using ApplyMap function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171730#M41607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel, thank you for the reply. In fact, I am trying to use a field which values are AAA, AA, A. When I try to display the mapping in a straight table, the applymap function returns a null value even if I use a default value (e.g. 'Z').&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 22:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171730#M41607</guid>
      <dc:creator />
      <dc:date>2009-12-02T22:46:27Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Problems using ApplyMap function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171731#M41608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gilberto,&lt;/P&gt;&lt;P&gt;remove the last line A, A from the map, because it's obsolete. See attachment also.&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 22:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171731#M41608</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-12-02T22:54:55Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Problems using ApplyMap function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171732#M41609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are getting null because you probably are applying the map on the map? As Ralf points, you need to separate map from data, then applymap on data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 22:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171732#M41609</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2009-12-02T22:59:19Z</dc:date>
    </item>
    <item>
      <title>Problems using ApplyMap function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171733#M41610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Gilberto Ruiz wrote:Then I try to include a field in a straight table with the following calculation: applymap('map1',value),&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;ApplyMap() is a script only fucnction. It cannot be used in charts. MAPPING tables are automatically dropped at script end.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 23:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171733#M41610</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-12-02T23:09:18Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Problems using ApplyMap function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171734#M41611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ralf, the file you provided solved the mapping problem. Thank you. Now, here comes the second part of the problem:&lt;/P&gt;&lt;P&gt;Suppose an Excel file with 2 columns:&lt;/P&gt;&lt;P&gt;AAA, 100&lt;/P&gt;&lt;P&gt;AA, 10&lt;/P&gt;&lt;P&gt;BBB, 100&lt;/P&gt;&lt;P&gt;BB, 5&lt;/P&gt;&lt;P&gt;With the mapping, I am able to change the AAA and AA to A (as well the BBB and B to B) and keep the outcome in a new field (let's say, Field2). Then how can I link Field2 with the values 100, 10, 100, 5 so in a graph appears 110 for A (the sum of AAA and AA) and 105 for B (the sum of BBB and BB).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 23:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171734#M41611</guid>
      <dc:creator />
      <dc:date>2009-12-02T23:27:15Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:Problems using ApplyMap function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171735#M41612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you need two mappings. The first one for A, B (Field1) the second for the figures (Field2). Then take Field1 as dimension and sum(Field2).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 00:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-using-ApplyMap-function/m-p/171735#M41612</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-12-03T00:31:43Z</dc:date>
    </item>
  </channel>
</rss>

