<?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 Why my Applymap return key value ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Why-my-Applymap-return-key-value/m-p/1530773#M38201</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Hi&lt;/STRONG&gt; there,&lt;/P&gt;&lt;P&gt;I have a problem with my function &lt;STRONG&gt;ApplyMap&lt;/STRONG&gt;();&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;My mapping loads well but when I want to use the function &lt;STRONG&gt;ApplyMap&lt;/STRONG&gt;, it returns me the value of the key and not its corresponding value.&lt;/SPAN&gt; &lt;SPAN class=""&gt;See the example below :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;My Mapping table :&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 323px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3809iAC35F1065EA7B5A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My other table from QVD file:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 369px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3811i5CF3121B09513767/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My code :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Mapping:&lt;BR /&gt;MAPPING LOAD Distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; code,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; family&lt;BR /&gt;FROM [lib://PATH\Mapping.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is FPY);&lt;BR /&gt;&lt;BR /&gt;FPY2:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;FROM [lib://PATH/PROD0145.QVD]&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;FPY_MAP :&lt;BR /&gt;LOAD *,&lt;BR /&gt;ApplyMap('Mapping',code) as Mapping&lt;BR /&gt;Resident FPY2;&lt;BR /&gt;&lt;BR /&gt;STORE FPY_MAP INTO [lib://PATH/MAPPING_TEST.csv] (txt);&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:50:48 GMT</pubDate>
    <dc:creator>Metalix64</dc:creator>
    <dc:date>2024-11-16T06:50:48Z</dc:date>
    <item>
      <title>Why my Applymap return key value ?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-my-Applymap-return-key-value/m-p/1530773#M38201</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi&lt;/STRONG&gt; there,&lt;/P&gt;&lt;P&gt;I have a problem with my function &lt;STRONG&gt;ApplyMap&lt;/STRONG&gt;();&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;My mapping loads well but when I want to use the function &lt;STRONG&gt;ApplyMap&lt;/STRONG&gt;, it returns me the value of the key and not its corresponding value.&lt;/SPAN&gt; &lt;SPAN class=""&gt;See the example below :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;My Mapping table :&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 323px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3809iAC35F1065EA7B5A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My other table from QVD file:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 369px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3811i5CF3121B09513767/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My code :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Mapping:&lt;BR /&gt;MAPPING LOAD Distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; code,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; family&lt;BR /&gt;FROM [lib://PATH\Mapping.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is FPY);&lt;BR /&gt;&lt;BR /&gt;FPY2:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;FROM [lib://PATH/PROD0145.QVD]&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;FPY_MAP :&lt;BR /&gt;LOAD *,&lt;BR /&gt;ApplyMap('Mapping',code) as Mapping&lt;BR /&gt;Resident FPY2;&lt;BR /&gt;&lt;BR /&gt;STORE FPY_MAP INTO [lib://PATH/MAPPING_TEST.csv] (txt);&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-my-Applymap-return-key-value/m-p/1530773#M38201</guid>
      <dc:creator>Metalix64</dc:creator>
      <dc:date>2024-11-16T06:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why my Applymap return key value ?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-my-Applymap-return-key-value/m-p/1530778#M38202</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems your mapping table 'code' format is different from fact table.&lt;/P&gt;&lt;P&gt;Please check and change the correct format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 08:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-my-Applymap-return-key-value/m-p/1530778#M38202</guid>
      <dc:creator>Somasundaram</dc:creator>
      <dc:date>2019-01-16T08:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why my Applymap return key value ?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-my-Applymap-return-key-value/m-p/1530783#M38204</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Thank you for your answer, indeed I force the type of my field with the function text () and it works now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My new code :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Mapping:&lt;BR /&gt;MAPPING LOAD Distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text(code) as newcode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; family&lt;BR /&gt;FROM [lib://PATH\Mapping.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is FPY);&lt;BR /&gt;&lt;BR /&gt;FPY2:&lt;BR /&gt;LOAD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;&amp;nbsp;text(AGENT) as newcode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;FROM [lib://PATH/PROD0145.QVD]&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;FPY_MAP :&lt;BR /&gt;LOAD *,&lt;BR /&gt;ApplyMap('Mapping',text(newcode)) as Mapping&lt;BR /&gt;Resident FPY2;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Thx.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 09:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-my-Applymap-return-key-value/m-p/1530783#M38204</guid>
      <dc:creator>Metalix64</dc:creator>
      <dc:date>2019-01-16T09:07:24Z</dc:date>
    </item>
  </channel>
</rss>

