<?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 Map/Apply Map error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168389#M39560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to map one field from one table and add this field to another table by using ApplyMap.&lt;/P&gt;&lt;P&gt;The problem is that I have to construct a new Key using two fields from the table to be able to link the tables.&lt;/P&gt;&lt;P&gt;Not sure if this is possible of how to do it, but I have given it a try (see code below).&lt;/P&gt;&lt;P&gt;I get the following error message when I do the load for the MAP1: Field not found &amp;lt;t_cwar&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="file:/C:/Users/mkfj/AppData/Local/Temp/moz-screenshot-1.png" /&gt;&lt;/P&gt;&lt;P&gt;Anyone how knows how to do this? Thanks in advance.&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;IMG src="file:/C:/Users/mkfj/AppData/Local/Temp/moz-screenshot.png" /&gt;// *******Inventory Value**********&lt;BR /&gt;ItemInventoryValue:&lt;BR /&gt;LOAD&lt;BR /&gt; "t_cwar"&amp;amp;'-'&amp;amp;"t_item" as WarehouseItem,&lt;BR /&gt; "t_mauc_1" as MAUC1;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM erplndb.dbo.twhwmd217100;&lt;BR /&gt;&lt;BR /&gt;Map1:&lt;BR /&gt;MAPPING LOAD "t_cwar"&amp;amp;'-'&amp;amp;"t_item" as WarehouseItem, MAUC1 Resident ItemInventoryValue;&lt;BR /&gt;&lt;BR /&gt;// *******Inventory Figures*******&lt;BR /&gt;ItemInventory:&lt;BR /&gt;LOAD "t_cwar" as Warehouse,&lt;BR /&gt; "t_item" as ItemNo,&lt;BR /&gt; "t_cwar"&amp;amp;'-'&amp;amp;"t_item" as WarehouseItem,&lt;BR /&gt; "t_qhnd" as Inv_OnHand,&lt;BR /&gt; "t_qhnd"*ApplyMap('Map1',WarehouseItem,0) as OH_Inv_Value,&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jan 2011 13:32:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-13T13:32:00Z</dc:date>
    <item>
      <title>Map/Apply Map error</title>
      <link>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168389#M39560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to map one field from one table and add this field to another table by using ApplyMap.&lt;/P&gt;&lt;P&gt;The problem is that I have to construct a new Key using two fields from the table to be able to link the tables.&lt;/P&gt;&lt;P&gt;Not sure if this is possible of how to do it, but I have given it a try (see code below).&lt;/P&gt;&lt;P&gt;I get the following error message when I do the load for the MAP1: Field not found &amp;lt;t_cwar&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="file:/C:/Users/mkfj/AppData/Local/Temp/moz-screenshot-1.png" /&gt;&lt;/P&gt;&lt;P&gt;Anyone how knows how to do this? Thanks in advance.&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;IMG src="file:/C:/Users/mkfj/AppData/Local/Temp/moz-screenshot.png" /&gt;// *******Inventory Value**********&lt;BR /&gt;ItemInventoryValue:&lt;BR /&gt;LOAD&lt;BR /&gt; "t_cwar"&amp;amp;'-'&amp;amp;"t_item" as WarehouseItem,&lt;BR /&gt; "t_mauc_1" as MAUC1;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM erplndb.dbo.twhwmd217100;&lt;BR /&gt;&lt;BR /&gt;Map1:&lt;BR /&gt;MAPPING LOAD "t_cwar"&amp;amp;'-'&amp;amp;"t_item" as WarehouseItem, MAUC1 Resident ItemInventoryValue;&lt;BR /&gt;&lt;BR /&gt;// *******Inventory Figures*******&lt;BR /&gt;ItemInventory:&lt;BR /&gt;LOAD "t_cwar" as Warehouse,&lt;BR /&gt; "t_item" as ItemNo,&lt;BR /&gt; "t_cwar"&amp;amp;'-'&amp;amp;"t_item" as WarehouseItem,&lt;BR /&gt; "t_qhnd" as Inv_OnHand,&lt;BR /&gt; "t_qhnd"*ApplyMap('Map1',WarehouseItem,0) as OH_Inv_Value,&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 13:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168389#M39560</guid>
      <dc:creator />
      <dc:date>2011-01-13T13:32:00Z</dc:date>
    </item>
    <item>
      <title>Map/Apply Map error</title>
      <link>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168390#M39561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you need to make this change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;// *******Inventory Value**********&lt;BR /&gt;ItemInventoryValue:&lt;BR /&gt;LOAD&lt;BR /&gt; "t_cwar"&amp;amp;'-'&amp;amp;"t_item" as &lt;B&gt;WarehouseItem&lt;/B&gt;,&lt;BR /&gt; "t_mauc_1" as MAUC1;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM erplndb.dbo.twhwmd217100;&lt;BR /&gt;&lt;BR /&gt;Map1:&lt;BR /&gt;MAPPING LOAD &lt;B&gt;WarehouseItem&lt;/B&gt; as WarehouseItem_MAP, MAUC1_MAP Resident ItemInventoryValue;&lt;BR /&gt;//The _MAP sufix it's to avoid the autoconcatenation with the 1st table&lt;BR /&gt;&lt;BR /&gt;// *******Inventory Figures*******&lt;BR /&gt;ItemInventory:&lt;BR /&gt;LOAD "t_cwar" as Warehouse,&lt;BR /&gt; "t_item" as ItemNo,&lt;BR /&gt; "t_cwar"&amp;amp;'-'&amp;amp;"t_item" as WarehouseItem,&lt;BR /&gt; "t_qhnd" as Inv_OnHand,&lt;BR /&gt; "t_qhnd"*ApplyMap('Map1',WarehouseItem,0) as OH_Inv_Value,&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;but, i'm not following the reason you are loading the same table twice&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 13:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168390#M39561</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-13T13:42:24Z</dc:date>
    </item>
    <item>
      <title>Map/Apply Map error</title>
      <link>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168391#M39562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;one thing is load only the field "WarehouseItem". It seems to be an Copy/Past error.&lt;/P&gt;&lt;P&gt;Map1:&lt;BR /&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;WarehouseItem,&lt;/P&gt;&lt;P&gt;MAUC1&lt;/P&gt;&lt;P&gt;Resident ItemInventoryValue;&lt;/P&gt;&lt;P&gt;Where are your ApplyMap line in the script?&lt;/P&gt;&lt;P&gt;Rainer&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 13:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168391#M39562</guid>
      <dc:creator />
      <dc:date>2011-01-13T13:44:05Z</dc:date>
    </item>
    <item>
      <title>Map/Apply Map error</title>
      <link>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168392#M39563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I try MAPPING LOAD WarehouseItem as you suggest I get the error message: Warehouse item cannot be found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 13:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168392#M39563</guid>
      <dc:creator />
      <dc:date>2011-01-13T13:51:35Z</dc:date>
    </item>
    <item>
      <title>Map/Apply Map error</title>
      <link>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168393#M39564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The apply map is in the last line in table number two:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;"t_qhnd"*ApplyMap('Map1',WarehouseItem,0) as OH_Inv_Value,&lt;BR /&gt;&lt;BR /&gt;I have two tables:&lt;BR /&gt;1. Inventory value&lt;BR /&gt;2. Inventory quantity&lt;BR /&gt;&lt;BR /&gt;I need to combine them into one and I have to use the combination of Warehouse and Item to get the right key.&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 13:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168393#M39564</guid>
      <dc:creator />
      <dc:date>2011-01-13T13:53:23Z</dc:date>
    </item>
    <item>
      <title>Map/Apply Map error</title>
      <link>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168394#M39565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is another problem, in the applymap you are using an alias instead of the original fields&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;"t_qhnd"*ApplyMap('Map1',WarehouseItem,0) as OH_Inv_Value,&lt;BR /&gt;&lt;BR /&gt;replace with&lt;BR /&gt;&lt;BR /&gt;"t_qhnd"*ApplyMap('Map1',t_cwar&amp;amp;'-'&amp;amp;t_item,0) as OH_Inv_Value,&lt;BR /&gt;&lt;BR /&gt;The solution suggested works, but i'm not sure if the mapping table will auto-concatenate with the 1st one, because both share the same fields&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 14:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168394#M39565</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-13T14:00:55Z</dc:date>
    </item>
    <item>
      <title>Map/Apply Map error</title>
      <link>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168395#M39566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much! This did it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 14:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-Apply-Map-error/m-p/168395#M39566</guid>
      <dc:creator />
      <dc:date>2011-01-13T14:20:20Z</dc:date>
    </item>
  </channel>
</rss>

