<?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 ApplyMap() Question on Qlik Sense in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ApplyMap-Question-on-Qlik-Sense/m-p/136512#M736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a binary load from a qvw and am trying to add a separate excel sheet and then do a lookup so that a few dimensions can be mapped to the values I have added on my excel sheet. &lt;STRONG&gt;When I load my added excel sheet, every single thing returns as 'missing'&lt;/STRONG&gt; (I have assigned it to return 'missing' if it can't find a value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I do a binary load, and then as shown below I have created two Mapping tables so I can look up the values I need from my excel sheet. ([ERP Material Group Desc2] and [ERP Supplier Parent] are the dimensions in the binary load and excel sheet, and I want to map [ERP Material Group Desc2] to&amp;nbsp; 'Major Commodity Category' and map [ERP Supplier Parent] to 'Vendor Grouping').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have put at the very end of the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MappingTable1:&lt;BR /&gt;Mapping Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ERP Material Group Desc2',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Major Commodity Category'&lt;BR /&gt;FROM [lib://Spend Visibility/10_File_Data\Mapping Sheet.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MappingTable2:&lt;BR /&gt;Mapping Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Vendor Name' as [ERP Supplier Parent],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Vendor Grouping'&lt;BR /&gt;FROM [lib://Spend Visibility/10_File_Data\Mapping Sheet.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spend_ERPCommodity2:&lt;BR /&gt;Load *,&lt;BR /&gt;ApplyMap('MappingTable1','ERP Material Group Desc2','Missing') as [Desc 2 Commodity Category]&lt;BR /&gt;Resident Spend_ERPCommodity;&lt;/P&gt;&lt;P&gt;drop table Spend_ERPCommodity;&lt;BR /&gt;Rename Table Spend_ERPCommodity2 to Spend_ERP_Commodity;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spend_Supplier2:&lt;BR /&gt;Load *,&lt;BR /&gt;ApplyMap('MappingTable2','ERP Supplier Parent','Missing') as [Vendor Desc 2 Commodity Category]&lt;BR /&gt;Resident Spend_Supplier;&lt;/P&gt;&lt;P&gt;drop table Spend_Supplier;&lt;BR /&gt;Rename Table Spend_Supplier2 to Spend_Supplier;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why is everything returning as missing, as I have checked manually that most of them should be returning the value they are mapped to?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2018 14:37:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-12T14:37:22Z</dc:date>
    <item>
      <title>ApplyMap() Question on Qlik Sense</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ApplyMap-Question-on-Qlik-Sense/m-p/136512#M736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a binary load from a qvw and am trying to add a separate excel sheet and then do a lookup so that a few dimensions can be mapped to the values I have added on my excel sheet. &lt;STRONG&gt;When I load my added excel sheet, every single thing returns as 'missing'&lt;/STRONG&gt; (I have assigned it to return 'missing' if it can't find a value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I do a binary load, and then as shown below I have created two Mapping tables so I can look up the values I need from my excel sheet. ([ERP Material Group Desc2] and [ERP Supplier Parent] are the dimensions in the binary load and excel sheet, and I want to map [ERP Material Group Desc2] to&amp;nbsp; 'Major Commodity Category' and map [ERP Supplier Parent] to 'Vendor Grouping').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have put at the very end of the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MappingTable1:&lt;BR /&gt;Mapping Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ERP Material Group Desc2',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Major Commodity Category'&lt;BR /&gt;FROM [lib://Spend Visibility/10_File_Data\Mapping Sheet.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MappingTable2:&lt;BR /&gt;Mapping Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Vendor Name' as [ERP Supplier Parent],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Vendor Grouping'&lt;BR /&gt;FROM [lib://Spend Visibility/10_File_Data\Mapping Sheet.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spend_ERPCommodity2:&lt;BR /&gt;Load *,&lt;BR /&gt;ApplyMap('MappingTable1','ERP Material Group Desc2','Missing') as [Desc 2 Commodity Category]&lt;BR /&gt;Resident Spend_ERPCommodity;&lt;/P&gt;&lt;P&gt;drop table Spend_ERPCommodity;&lt;BR /&gt;Rename Table Spend_ERPCommodity2 to Spend_ERP_Commodity;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spend_Supplier2:&lt;BR /&gt;Load *,&lt;BR /&gt;ApplyMap('MappingTable2','ERP Supplier Parent','Missing') as [Vendor Desc 2 Commodity Category]&lt;BR /&gt;Resident Spend_Supplier;&lt;/P&gt;&lt;P&gt;drop table Spend_Supplier;&lt;BR /&gt;Rename Table Spend_Supplier2 to Spend_Supplier;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why is everything returning as missing, as I have checked manually that most of them should be returning the value they are mapped to?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 14:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/ApplyMap-Question-on-Qlik-Sense/m-p/136512#M736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-12T14:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap() Question on Qlik Sense</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ApplyMap-Question-on-Qlik-Sense/m-p/136513#M737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, maybe try one following thing&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;ApplyMap('MappingTable1',"ERP Material Group Desc2",'Missing') as [Desc 2 Commodity Category]&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;Remove ' ' around &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ERP Material Group Desc2 and replace it by "". In script it should have brown/orange color. Just for make i clear does your table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Spend_ERPCommodity contain field named &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ERP Material Group Desc2,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 13:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/ApplyMap-Question-on-Qlik-Sense/m-p/136513#M737</guid>
      <dc:creator>DavidŠtorek</dc:creator>
      <dc:date>2018-07-20T13:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap() Question on Qlik Sense</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ApplyMap-Question-on-Qlik-Sense/m-p/136514#M738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response. I got it to work.&amp;nbsp; I had to write each applymap function like this:&lt;/P&gt;&lt;P&gt;ApplyMap('MappingTable1',[ERP Material Group Desc2],'MISSING') as [Desc 2 Commodity Category]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And each dimension in the Mapping Load statement needed " "&amp;nbsp; instead of ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 13:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/ApplyMap-Question-on-Qlik-Sense/m-p/136514#M738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-20T13:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap() Question on Qlik Sense</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ApplyMap-Question-on-Qlik-Sense/m-p/136515#M739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;¨&lt;/P&gt;&lt;P&gt;Please mark as correct answer to help allso others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 05:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/ApplyMap-Question-on-Qlik-Sense/m-p/136515#M739</guid>
      <dc:creator>DavidŠtorek</dc:creator>
      <dc:date>2018-07-23T05:59:59Z</dc:date>
    </item>
  </channel>
</rss>

