<?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 doubts about apply map in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/doubts-about-apply-map/m-p/553551#M693812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;here apply map allows us to take one primary key and value while loading data into qlikview for e.g following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;map1:&lt;BR /&gt;mapping load * inline [&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ID, Textvalue&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;1, one&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;2, two&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;3, three ] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ApplyMap ( 'map1', 1, 'xxx' ) It will return 'one'&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ApplyMap ( 'map1', 2 ) It will return 'two'&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;BR /&gt;ApplyMap ( 'map1', 4 ) It will return 4&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;BR /&gt;ApplyMap ( 'map1', 5, 'No result' ) It will returns No result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;/P&gt;&lt;P&gt;But whether it is possible to put composite key in while loading applymap&amp;nbsp; for e.g&amp;nbsp;&amp;nbsp;&amp;nbsp; I have field&amp;nbsp; SalesGrp+HQID &lt;/P&gt;&lt;P&gt;and its targets then whether it is possible to load with composite key (salesgrp+hqid) in apply map ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in adv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2013 05:48:11 GMT</pubDate>
    <dc:creator>vikasmahajan</dc:creator>
    <dc:date>2013-07-09T05:48:11Z</dc:date>
    <item>
      <title>doubts about apply map</title>
      <link>https://community.qlik.com/t5/QlikView/doubts-about-apply-map/m-p/553551#M693812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;here apply map allows us to take one primary key and value while loading data into qlikview for e.g following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;map1:&lt;BR /&gt;mapping load * inline [&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ID, Textvalue&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;1, one&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;2, two&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;3, three ] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ApplyMap ( 'map1', 1, 'xxx' ) It will return 'one'&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ApplyMap ( 'map1', 2 ) It will return 'two'&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;BR /&gt;ApplyMap ( 'map1', 4 ) It will return 4&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;BR /&gt;ApplyMap ( 'map1', 5, 'No result' ) It will returns No result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;/P&gt;&lt;P&gt;But whether it is possible to put composite key in while loading applymap&amp;nbsp; for e.g&amp;nbsp;&amp;nbsp;&amp;nbsp; I have field&amp;nbsp; SalesGrp+HQID &lt;/P&gt;&lt;P&gt;and its targets then whether it is possible to load with composite key (salesgrp+hqid) in apply map ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in adv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 05:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/doubts-about-apply-map/m-p/553551#M693812</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-07-09T05:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: doubts about apply map</title>
      <link>https://community.qlik.com/t5/QlikView/doubts-about-apply-map/m-p/553552#M693813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can guess from the manual, a mapping load only consider two fields. One is the key and the other the value as you have explained perfectly.&lt;/P&gt;&lt;P&gt;If you need a composite key just create it concatenating both fields in order to create an unique key. For example yo can create Salesgrp &amp;amp; ' .. ' &amp;amp; Hqrd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 05:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/doubts-about-apply-map/m-p/553552#M693813</guid>
      <dc:creator>forte</dc:creator>
      <dc:date>2013-07-09T05:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: doubts about apply map</title>
      <link>https://community.qlik.com/t5/QlikView/doubts-about-apply-map/m-p/553553#M693814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no you can't do this through applymap&lt;/P&gt;&lt;P&gt;it based on primary key &lt;/P&gt;&lt;P&gt;but for that you can create a field&amp;nbsp; &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;SalesGrp &amp;amp;'-' &amp;amp;HQID as Primary &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;and use that field and on above side write field there it become easier for matching and if values doesn't match then &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;the same value it is coming or you make it null also like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ApplyMap ( 'map1', ID, '#N/A' ) It will return matching data with name and else #N/A&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 05:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/doubts-about-apply-map/m-p/553553#M693814</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-07-09T05:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: doubts about apply map</title>
      <link>https://community.qlik.com/t5/QlikView/doubts-about-apply-map/m-p/553554#M693815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I will try the same I think I guess the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 06:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/doubts-about-apply-map/m-p/553554#M693815</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-07-09T06:21:58Z</dc:date>
    </item>
  </channel>
</rss>

