<?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 Can I reuse mapping tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-I-reuse-mapping-tables/m-p/613669#M685321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a for loop in my script that loads data for each month.&amp;nbsp; I would like to reuse my mapping tables for each month, loading them with the next months lookup values.&amp;nbsp; In my test, the second time I assign values to the mapping table it doesn't take.&amp;nbsp; So far I don't see a way to drop the table, or to use a dynamic name.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this would be appreciated.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Feb 2014 23:59:39 GMT</pubDate>
    <dc:creator>erikzions</dc:creator>
    <dc:date>2014-02-05T23:59:39Z</dc:date>
    <item>
      <title>Can I reuse mapping tables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-reuse-mapping-tables/m-p/613669#M685321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a for loop in my script that loads data for each month.&amp;nbsp; I would like to reuse my mapping tables for each month, loading them with the next months lookup values.&amp;nbsp; In my test, the second time I assign values to the mapping table it doesn't take.&amp;nbsp; So far I don't see a way to drop the table, or to use a dynamic name.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this would be appreciated.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 23:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-reuse-mapping-tables/m-p/613669#M685321</guid>
      <dc:creator>erikzions</dc:creator>
      <dc:date>2014-02-05T23:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can I reuse mapping tables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-reuse-mapping-tables/m-p/613670#M685322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erik , Firstly, there is no concatenation between two mapping tables. So please use global Mapping table or create Mapping table every time in the Loop like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method1:&lt;/P&gt;&lt;P&gt;MAP_TAB:&lt;/P&gt;&lt;P&gt;MAPPING LOAD A, B FROM SOURCE ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i=1 to 10 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * , ApplyMap('MAP_TAB',A) AS FIELD;&lt;/P&gt;&lt;P&gt;Next i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i=1 to 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vMapName = 'MAP_TAB'&amp;amp;$(i);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vMAPName):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAPPING LOAD A, B FROM SOURCE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * , ApplyMap('$(vMapName)', A) AS FIELD ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post your script if you encounter any problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 00:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-reuse-mapping-tables/m-p/613670#M685322</guid>
      <dc:creator />
      <dc:date>2014-02-06T00:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can I reuse mapping tables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-reuse-mapping-tables/m-p/613671#M685323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Erik, Dathu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that in the case of a loop. Mapping tables DO autoconcatenate.&lt;/P&gt;&lt;P&gt;I proved this using the attached qvw.&lt;/P&gt;&lt;P&gt;Mapping tables don't autoconcatenate when they have a different name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is to give your mapping table a different name in each step. This can be by adding a variable depending on the counter i to the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,KR Koen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 15:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-reuse-mapping-tables/m-p/613671#M685323</guid>
      <dc:creator>cheburashka</dc:creator>
      <dc:date>2014-12-10T15:40:08Z</dc:date>
    </item>
  </channel>
</rss>

