<?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: Error using 2 ApplyMap consecutively in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-using-2-ApplyMap-consecutively/m-p/394730#M701149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro,&lt;/P&gt;&lt;P&gt;you cannot use SupplierID field this way, as it is not created yet. You can try with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;ApplyMap('MapGestSuppliers',LotNumber,Null()) AS SupplierID,&lt;BR /&gt;ApplyMap('Map_CustVendorName',&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;ApplyMap('MapGestSuppliers',LotNumber,Null())&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;,Null()) AS SupplierName&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or create two load statemets, the first one with &lt;/P&gt;&lt;P&gt; &lt;CODE class="jive-code"&gt;ApplyMap('MapGestSuppliers',LotNumber,Null()) AS SupplierID &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the second with &lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;ApplyMap('Map_CustVendorName',SupplierID,Null()) AS SupplierName&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2012 11:20:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-11T11:20:11Z</dc:date>
    <item>
      <title>Error using 2 ApplyMap consecutively</title>
      <link>https://community.qlik.com/t5/QlikView/Error-using-2-ApplyMap-consecutively/m-p/394729#M701148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, while I'm loading a table I use ApplyMap to add a new field this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13473613439035969" jivemacro_uid="_13473613439035969"&gt;&lt;P&gt;&amp;nbsp; ApplyMap('MapGestSuppliers',LotNumber,Null()) AS SupplierID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I get the field SupplierID, but If I add a second ApplyMap, this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13473614326414640" jivemacro_uid="_13473614326414640"&gt;&lt;P&gt; ApplyMap('MapGestSuppliers',LotNumber,Null()) AS SupplierID,&lt;/P&gt;&lt;P&gt;ApplyMap('Map_CustVendorName',SupplierID,Null()) AS SupplierName&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trying to use the first result (SupplierID) in the second mapping It gives an error while loading the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field &amp;lt;SupplierID&amp;gt; Not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I can't do this this way, how can I add later another field to the table previously loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 11:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-using-2-ApplyMap-consecutively/m-p/394729#M701148</guid>
      <dc:creator />
      <dc:date>2012-09-11T11:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error using 2 ApplyMap consecutively</title>
      <link>https://community.qlik.com/t5/QlikView/Error-using-2-ApplyMap-consecutively/m-p/394730#M701149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro,&lt;/P&gt;&lt;P&gt;you cannot use SupplierID field this way, as it is not created yet. You can try with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;ApplyMap('MapGestSuppliers',LotNumber,Null()) AS SupplierID,&lt;BR /&gt;ApplyMap('Map_CustVendorName',&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;ApplyMap('MapGestSuppliers',LotNumber,Null())&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;,Null()) AS SupplierName&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or create two load statemets, the first one with &lt;/P&gt;&lt;P&gt; &lt;CODE class="jive-code"&gt;ApplyMap('MapGestSuppliers',LotNumber,Null()) AS SupplierID &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the second with &lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;ApplyMap('Map_CustVendorName',SupplierID,Null()) AS SupplierName&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 11:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-using-2-ApplyMap-consecutively/m-p/394730#M701149</guid>
      <dc:creator />
      <dc:date>2012-09-11T11:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error using 2 ApplyMap consecutively</title>
      <link>https://community.qlik.com/t5/QlikView/Error-using-2-ApplyMap-consecutively/m-p/394731#M701150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Krunoslav, I've used the first method and it works for me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 11:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-using-2-ApplyMap-consecutively/m-p/394731#M701150</guid>
      <dc:creator />
      <dc:date>2012-09-11T11:40:23Z</dc:date>
    </item>
  </channel>
</rss>

