<?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: Mapping Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-Issue/m-p/821436#M289566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting square brackets around the field names with spaces :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('Mapping_load_Table_name&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #575757;"&gt;,&lt;/SPAN&gt;[&lt;/STRONG&gt;&lt;/SPAN&gt;Product ID&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/SPAN&gt;Product Category&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;) as MappedField&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 17:26:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-30T17:26:45Z</dc:date>
    <item>
      <title>Mapping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Issue/m-p/821435#M289565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Mapping load table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 125pt;" width="167"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl64" height="20" style="height: 15.0pt; width: 53pt;" width="71"&gt;Product ID&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none; width: 72pt;" width="96"&gt;Product Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;MOBILE&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;LAPTOP&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;PRINTER&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;My Data is like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 185px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; width: 53pt;" width="71"&gt;Product ID&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none; width: 86pt;" width="114"&gt;Product Category&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;AAA&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;BBB&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CCC&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;DDD&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;EEE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Requirement is i need to map the Product Name based on the Product ID.If the Mapping table does not contain a particular Product ID then it should take Product Category as Product Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Applymap('Mapping_load_Table_name',Product ID,Product Category).But could not succeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;My Output should be like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 211pt;" width="281"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; width: 53pt;" width="71"&gt;Product ID&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none; width: 86pt;" width="114"&gt;Product Category&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none; width: 72pt;" width="96"&gt;Product Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;AAA&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;MOBILE&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;BBB&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;LAPTOP&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;CCC&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;PRINTER&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;DDD&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;DDD&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;EEE&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;EEE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Roopesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Issue/m-p/821435#M289565</guid>
      <dc:creator />
      <dc:date>2015-03-30T17:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Issue/m-p/821436#M289566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting square brackets around the field names with spaces :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('Mapping_load_Table_name&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #575757;"&gt;,&lt;/SPAN&gt;[&lt;/STRONG&gt;&lt;/SPAN&gt;Product ID&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/SPAN&gt;Product Category&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;) as MappedField&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Issue/m-p/821436#M289566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T17:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Issue/m-p/821437#M289567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample. The first load is a mapping load (and won't be a part of the data model)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 2nd load is your data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 3rd data, loads your data and applies the map. When no hit is found, it uses product category. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProductMap:&lt;/P&gt;&lt;P&gt;mapping load * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product ID, Product Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, MOBILE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, LAPTOP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, PRINTER&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product ID, Product Category&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, AAA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, BBB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, CCC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, DDD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, EEE&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('ProductMap',[Product ID],[Product Category])as [Product Name]&lt;/P&gt;&lt;P&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The outcome is a single table with the desired effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your situation your probably won't need the 2nd load.. Just load from your data source and add a new calculated field using applymap() as you see in the 3rd load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/82401_Capture.PNG" style="height: 272px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Issue/m-p/821437#M289567</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-30T17:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Issue/m-p/821438#M289568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="1.png" class="image-1 jive-image" height="138" src="https://community.qlik.com/legacyfs/online/82402_1.png" style="height: 138.360526315789px; width: 259px;" width="259" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Mapping_load_Table_name:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mapping load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Product ID, Product Name&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1, MOBILE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2, LAPTOP&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3, PRINTER&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Applymap('Mapping_load_Table_name',[Product ID],[Product Category]) as [Product Name] &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;inline [ &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Product ID, Product Category&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1, AAA&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2, BBB&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3, CCC&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;4, DDD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5, EEE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Issue/m-p/821438#M289568</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-30T17:29:21Z</dc:date>
    </item>
  </channel>
</rss>

