<?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 function Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Apply-Map-function-Issue/m-p/1574726#M442421</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi Poooja&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ApplyMap function syntax is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ApplyMap('map_name', expression [ , default_mapping ] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You must 3rd value 'default_mapping',&amp;nbsp;&amp;nbsp;this value will be used as a default value if the mapping table does not contain a matching value for&amp;nbsp;expression. If not stated, the value of&amp;nbsp;expression&amp;nbsp;will be returned as is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can read more about Applymap syntax here&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Scripting/MappingFunctions/ApplyMap.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2019 04:06:58 GMT</pubDate>
    <dc:creator>niyazymbetov</dc:creator>
    <dc:date>2019-04-30T04:06:58Z</dc:date>
    <item>
      <title>Apply Map function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-Map-function-Issue/m-p/1574720#M442420</link>
      <description>&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Qlikies,&lt;/P&gt;&lt;P&gt;I came across a below situation in applymap function,&lt;/P&gt;&lt;P&gt;Below is my example: &amp;nbsp;Here i have to give 'Status' &amp;nbsp;as a selection but it's not giving expected value as source file bringing extra values which is not matching with the mapping table value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code:&lt;/P&gt;&lt;P&gt;Mapping_Table:&lt;BR /&gt;Mapping &lt;STRONG&gt;LOAD&lt;/STRONG&gt; * INLINE [&lt;BR /&gt;ID, Status&lt;BR /&gt;1, Pass&lt;BR /&gt;2, Pass&lt;BR /&gt;3, Pass&lt;BR /&gt;4, Fail&lt;BR /&gt;5, Fail&lt;BR /&gt;6, Fail&lt;BR /&gt;7, Pass&lt;BR /&gt;8, Fail&lt;BR /&gt;9, Pass&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Table:&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; ID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Mapping_Table', ID)As Status&lt;BR /&gt;FROM&lt;BR /&gt;Applymap.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code providing below output:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.JPG" style="width: 332px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11138i1074B1BC4FB96151/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Output: only &lt;STRONG&gt;Fail and Pass&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.JPG" style="width: 269px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11137i800AD96AD2BCAF7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 02:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-Map-function-Issue/m-p/1574720#M442420</guid>
      <dc:creator>poooja</dc:creator>
      <dc:date>2019-04-30T02:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Map function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-Map-function-Issue/m-p/1574726#M442421</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Poooja&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ApplyMap function syntax is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ApplyMap('map_name', expression [ , default_mapping ] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You must 3rd value 'default_mapping',&amp;nbsp;&amp;nbsp;this value will be used as a default value if the mapping table does not contain a matching value for&amp;nbsp;expression. If not stated, the value of&amp;nbsp;expression&amp;nbsp;will be returned as is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can read more about Applymap syntax here&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Scripting/MappingFunctions/ApplyMap.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 04:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-Map-function-Issue/m-p/1574726#M442421</guid>
      <dc:creator>niyazymbetov</dc:creator>
      <dc:date>2019-04-30T04:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Map function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-Map-function-Issue/m-p/1574760#M442429</link>
      <description>&lt;P&gt;Use something like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;ApplyMap('Mapping_Table',&amp;nbsp; ID, 'Unknown') as Status&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 05:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-Map-function-Issue/m-p/1574760#M442429</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-04-30T05:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Map function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-Map-function-Issue/m-p/1575055#M442476</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in Apply map function if ID is not in the mapping table it will show you the actual ID instead of related value suppose&amp;nbsp;&lt;/P&gt;&lt;P&gt;in mapping table you dont have value for ID 11 then while using apply map function it will show you 11 but if you have value for ID 10 as Yes then it will show Yes&lt;/P&gt;&lt;P&gt;I hope this explains your question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kushal&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 12:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-Map-function-Issue/m-p/1575055#M442476</guid>
      <dc:creator>kushalthakral</dc:creator>
      <dc:date>2019-04-30T12:59:28Z</dc:date>
    </item>
  </channel>
</rss>

