<?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: APPLY MAP in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/APPLY-MAP/m-p/1450581#M434236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I get this output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181378_Screenshot_1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Oct 2017 13:44:25 GMT</pubDate>
    <dc:creator>upaliwije</dc:creator>
    <dc:date>2017-10-28T13:44:25Z</dc:date>
    <item>
      <title>APPLY MAP</title>
      <link>https://community.qlik.com/t5/QlikView/APPLY-MAP/m-p/1450577#M434232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 180px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="117"&gt;POLICY_NO&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="63"&gt;POL_TYPE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="107"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="107"&gt;TA00171A0000089&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;00EM1D000574&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;00GM1A000393&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;00KA1D000603&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;00KA1H000338&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;00NU1C000924&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;01CO1A006290&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;01CO1C005803&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;01CO1C005962&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;01CO1C005980&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my script is for the 1st table is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapnew:&lt;/P&gt;&lt;P&gt;MAPPING LOAD TRIM(POLICY_NO) AS POLICY_NO, POL_TYPE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;D:\Qlikview\QVD\FACT_Table\Renewable_to_new.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my 2nd table is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POLICY_NO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; POL_TYPE_N&lt;/P&gt;&lt;P&gt;EN00161C0000511&amp;nbsp; R&lt;/P&gt;&lt;P&gt;DG00161A0000971&amp;nbsp; R&lt;/P&gt;&lt;P&gt;WM00171D0000484&amp;nbsp; F&lt;/P&gt;&lt;P&gt;KD00141A0001079&amp;nbsp; R&lt;/P&gt;&lt;P&gt;TA00171A0000089&amp;nbsp; N&lt;/P&gt;&lt;P&gt;CO14151A0009541&amp;nbsp; R&lt;/P&gt;&lt;P&gt;COMC111A053251&amp;nbsp; R&lt;/P&gt;&lt;P&gt;CO12141C0002493&amp;nbsp; R&lt;/P&gt;&lt;P&gt;KD00061B001168&amp;nbsp; F&lt;/P&gt;&lt;P&gt;KD00061B001168&amp;nbsp; R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the script for the apply map is shown below&lt;/P&gt;&lt;P&gt;&amp;nbsp; load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Match(POL_TYPE_N,'N'),ApplyMap('mapnew',POLICY_NO),POL_TYPE_N)AS POL_TYPE&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident growth;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But&amp;nbsp; my output is incorrect and shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 325px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="107"&gt;POLICY_NO&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="91"&gt;POL_TYPE_N&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="127"&gt; POL_TYPE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;EN00161C0000511&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;DG00161A0000971&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;WM00171D0000484&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;KD00141A0001079&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;TA00171A0000089&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;N&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;TA00171A0000089&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;CO14151A0009541&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;COMC111A053251&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;CO12141C0002493&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;KD00061B001168&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I can not understand the reason for the above, I am expecting 'R' instead of policy No&amp;nbsp; under the POL_TYPE of the 5th Record of above table&amp;nbsp; Pls advise me &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2017 12:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/APPLY-MAP/m-p/1450577#M434232</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-10-28T12:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: APPLY MAP</title>
      <link>https://community.qlik.com/t5/QlikView/APPLY-MAP/m-p/1450578#M434233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because there is no member '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TA00171A0000089&lt;/SPAN&gt;' in your mapping table. Applymap by defaults returns the source value itself if there is no match in the mapping table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2017 12:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/APPLY-MAP/m-p/1450578#M434233</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-10-28T12:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: APPLY MAP</title>
      <link>https://community.qlik.com/t5/QlikView/APPLY-MAP/m-p/1450579#M434234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To understand clear where values are identified or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;IF(Match(POL_TYPE_N,'N'),ApplyMap('mapnew',POLICY_NO),'NULL') AS POL_TYPE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2017 12:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/APPLY-MAP/m-p/1450579#M434234</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-10-28T12:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: APPLY MAP</title>
      <link>https://community.qlik.com/t5/QlikView/APPLY-MAP/m-p/1450580#M434235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with the data you posted it seems to work, see image and script below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to check if you have a space in the policy no &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TA00171A0000089&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181372_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Renewable_to_new:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;POLICY_NO POL_TYPE&lt;/P&gt;&lt;P&gt;TA00171A0000089 R&lt;/P&gt;&lt;P&gt;00EM1D000574 R&lt;/P&gt;&lt;P&gt;00GM1A000393 R&lt;/P&gt;&lt;P&gt;00KA1D000603 R&lt;/P&gt;&lt;P&gt;00KA1H000338 R&lt;/P&gt;&lt;P&gt;00NU1C000924 R&lt;/P&gt;&lt;P&gt;01CO1A006290 R&lt;/P&gt;&lt;P&gt;01CO1C005803 R&lt;/P&gt;&lt;P&gt;01CO1C005962 R&lt;/P&gt;&lt;P&gt;01CO1C005980 R&lt;/P&gt;&lt;P&gt;] (delimiter is spaces)&lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapnew:&lt;/P&gt;&lt;P&gt;MAPPING LOAD TRIM(POLICY_NO) AS POLICY_NO, POL_TYPE&lt;/P&gt;&lt;P&gt;Resident&amp;nbsp; Renewable_to_new;&lt;/P&gt;&lt;P&gt;DROP Table Renewable_to_new;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;growth:&lt;/P&gt;&lt;P&gt;load * inline [ &lt;/P&gt;&lt;P&gt;POLICY_NO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; POL_TYPE_N&lt;/P&gt;&lt;P&gt;EN00161C0000511&amp;nbsp; R&lt;/P&gt;&lt;P&gt;DG00161A0000971&amp;nbsp; R&lt;/P&gt;&lt;P&gt;WM00171D0000484&amp;nbsp; F&lt;/P&gt;&lt;P&gt;KD00141A0001079&amp;nbsp; R&lt;/P&gt;&lt;P&gt;TA00171A0000089&amp;nbsp; N&lt;/P&gt;&lt;P&gt;CO14151A0009541&amp;nbsp; R&lt;/P&gt;&lt;P&gt;COMC111A053251&amp;nbsp; R&lt;/P&gt;&lt;P&gt;CO12141C0002493&amp;nbsp; R&lt;/P&gt;&lt;P&gt;KD00061B001168&amp;nbsp; F&lt;/P&gt;&lt;P&gt;KD00061B001168&amp;nbsp; R&lt;/P&gt;&lt;P&gt;] (delimiter is spaces)&lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;IF(Match(POL_TYPE_N,'N'),ApplyMap('mapnew',POLICY_NO),POL_TYPE_N)AS POL_TYPE&lt;/P&gt;&lt;P&gt;Resident growth;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table growth; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2017 12:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/APPLY-MAP/m-p/1450580#M434235</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-10-28T12:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: APPLY MAP</title>
      <link>https://community.qlik.com/t5/QlikView/APPLY-MAP/m-p/1450581#M434236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I get this output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181378_Screenshot_1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2017 13:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/APPLY-MAP/m-p/1450581#M434236</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-10-28T13:44:25Z</dc:date>
    </item>
  </channel>
</rss>

