<?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 Table DLE in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Mapping-Table-DLE/m-p/13475#M958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or if you still want to use ApplyMap() then there are two problems in your Current script, if this is actually the order in which you are loading your tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) You cannot refer to a table "Customers" before loading it&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1)MapCustomerIDtoCountry:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mapping LOAD CustomerID, Country&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt; From Customers;&amp;nbsp; &amp;lt;&amp;lt; this has to be loaded before you want to reuse the&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2)Orders:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;3)Customers:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2) To reload existing Tables you must use the &lt;STRONG&gt;RESIDENT&lt;/STRONG&gt; clause&amp;nbsp; instead of &lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So the correct order of your load script should be as below&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Customers:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM [lib://Sheet1.xlsx]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Customers);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MapCustomerIDtoCountry:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Mapping LOAD CustomerID, Country &lt;STRONG&gt;RESIDENT&lt;/STRONG&gt; Customers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Orders:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipperID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Freight,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ApplyMap('MapCustomerIDtoCountry', CustomerID, null()) as Country&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM [lib://Sheet2.xlsx]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Orders);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2018 04:00:12 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2018-04-25T04:00:12Z</dc:date>
    <item>
      <title>Mapping Table DLE</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-Table-DLE/m-p/13473#M956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the Order and Customer tables below I am trying to create a mapping table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order Table&lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;middle&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;middle&amp;quot;}" style="width: 347px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px; vertical-align: middle;"&gt;OrderID&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px; vertical-align: middle;"&gt;OrderDate&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px; vertical-align: middle;"&gt;ShipperID&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px; vertical-align: middle;"&gt;Freight&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px; vertical-align: middle;"&gt;CustomerID&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;12987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;2007/12/01&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;27&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;12988&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;2007/12/01&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;65&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;12989&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;2007/12/02&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;32&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;12990&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;2007/12/03&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;76&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer Table&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;middle&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border-width: 1px; border-style: solid;" width="233"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;CustomerID&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Name&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Country&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;1&lt;/TD&gt;&lt;TD style="text-align: center; vertical-align: middle; color: #575757; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif;"&gt;DataSales&lt;/TD&gt;&lt;TD style="text-align: center; vertical-align: middle; color: #575757; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif;"&gt;Spain&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;2&lt;/TD&gt;&lt;TD style="text-align: center; vertical-align: middle; color: #575757; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif;"&gt;BusinessCorp&lt;/TD&gt;&lt;TD style="text-align: center; vertical-align: middle; color: #575757; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif;"&gt;Italy&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;3&lt;/TD&gt;&lt;TD style="text-align: center; vertical-align: middle; color: #575757; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif;"&gt;TechCo&lt;/TD&gt;&lt;TD style="text-align: center; vertical-align: middle; color: #575757; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif;"&gt;Germany&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;4&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;Mobecho&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;France&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mapping table should look like this...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;middle&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;middle&amp;quot;}" style="border-width: 1px; border-style: solid;" width="144"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px; vertical-align: middle;"&gt;CustomerID&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px; vertical-align: middle;"&gt;Country&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;1&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;Spain&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;2&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;Italy&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;3&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;Germany&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;4&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;France&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code from the Data Load Editor...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapCustomerIDtoCountry:&lt;/P&gt;&lt;P&gt;Mapping LOAD CustomerID, Country From Customers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;ApplyMap('MapCustomerIDtoCountry', CustomerID, null()) as Country&lt;/P&gt;&lt;P&gt;From Orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customers:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country&lt;/P&gt;&lt;P&gt;FROM [lib://Sheet1.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Customers);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipperID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Freight,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID&lt;/P&gt;&lt;P&gt;FROM [lib://Sheet2.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Orders);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....I attached a screen shot of the error message this code produces, I want the resulting table to look like the table below, can you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;middle&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border-width: 1px; border-style: solid;" width="400"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;OrderID&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt; OrderDate &lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;ShipperID&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt; Freight &lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;CustomerID&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt; Country&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;12987&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt; 2007-12-01&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;27&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;3&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: middle;"&gt;Germany&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 21:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-Table-DLE/m-p/13473#M956</guid>
      <dc:creator>leobrand</dc:creator>
      <dc:date>2018-04-24T21:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Table DLE</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-Table-DLE/m-p/13474#M957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just left Join the Country?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Orders:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipperID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Freight,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM [lib://Sheet2.xlsx]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Orders);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;left Join (Orders)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Customers:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM [lib://Sheet1.xlsx]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Customers);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 03:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-Table-DLE/m-p/13474#M957</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2018-04-25T03:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Table DLE</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-Table-DLE/m-p/13475#M958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or if you still want to use ApplyMap() then there are two problems in your Current script, if this is actually the order in which you are loading your tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) You cannot refer to a table "Customers" before loading it&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1)MapCustomerIDtoCountry:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mapping LOAD CustomerID, Country&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt; From Customers;&amp;nbsp; &amp;lt;&amp;lt; this has to be loaded before you want to reuse the&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2)Orders:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;3)Customers:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2) To reload existing Tables you must use the &lt;STRONG&gt;RESIDENT&lt;/STRONG&gt; clause&amp;nbsp; instead of &lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So the correct order of your load script should be as below&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Customers:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM [lib://Sheet1.xlsx]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Customers);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MapCustomerIDtoCountry:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Mapping LOAD CustomerID, Country &lt;STRONG&gt;RESIDENT&lt;/STRONG&gt; Customers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Orders:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipperID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Freight,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ApplyMap('MapCustomerIDtoCountry', CustomerID, null()) as Country&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM [lib://Sheet2.xlsx]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Orders);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 04:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-Table-DLE/m-p/13475#M958</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2018-04-25T04:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Table DLE</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-Table-DLE/m-p/13476#M959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what you need:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MapCustomerIDtoCountry:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Mapping LOAD CustomerID, Country&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM [lib://Sheet1.xlsx]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is Customers);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Orders:&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;&amp;nbsp;&amp;nbsp; OrderID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipperID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Freight,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MapCustomerIDtoCountry', CustomerID, null()) as Country&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM [lib://Sheet2.xlsx]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is Orders);&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 05:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-Table-DLE/m-p/13476#M959</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-04-25T05:06:41Z</dc:date>
    </item>
  </channel>
</rss>

