<?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 Why the ApplyMap does not work when concatenation is used? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243136#M1187304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried to use the apply map after you have concatenated all of the tables via a resident load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2011 15:00:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-07T15:00:08Z</dc:date>
    <item>
      <title>Why the ApplyMap does not work when concatenation is used?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243135#M1187303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;XY_Map:&lt;BR /&gt;mapping load&lt;BR /&gt;'$(vComp)'&amp;amp;'-'&amp;amp;FIELD1 as ID,&lt;BR /&gt;FIELD1&amp;amp;'-'&amp;amp;FIELD2 as Desc;&lt;BR /&gt;select FIELD1, FIELD2 from SQL_TABLE;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #004d4d; font-size: 10pt;"&gt; Fact:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #004d4d; font-size: 10pt;"&gt;load&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #004d4d; font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #004d4d; font-size: 10pt;"&gt;applymap('XY_Map', '$(vComp)'&amp;amp;'-'&amp;amp;left(FIELD99,7)) as Desc,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #004d4d; font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #004d4d; font-size: 10pt;"&gt;select FIELD99 from SQL_FACT_TABLE;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 09:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243135#M1187303</guid>
      <dc:creator />
      <dc:date>2011-09-07T09:51:04Z</dc:date>
    </item>
    <item>
      <title>Why the ApplyMap does not work when concatenation is used?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243136#M1187304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried to use the apply map after you have concatenated all of the tables via a resident load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 15:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243136#M1187304</guid>
      <dc:creator />
      <dc:date>2011-09-07T15:00:08Z</dc:date>
    </item>
    <item>
      <title>Why the ApplyMap does not work when concatenation is used?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243137#M1187305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; apply map reuires two seperate table like beelow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapping load will hide the mapping table and show the table where you use apply map&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;mapping&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;from path;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab2:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;appymap(...)&amp;nbsp; as a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from&amp;nbsp; paath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can use the mapping load via resident table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will hide your primary table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;mapping&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;from path;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab2:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;appymap(...)&amp;nbsp; as a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resident tab1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 16:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243137#M1187305</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-07T16:00:48Z</dc:date>
    </item>
    <item>
      <title>Why the ApplyMap does not work when concatenation is used?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243138#M1187306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;XY_Map:&lt;BR /&gt;mapping load&lt;BR /&gt;'$(vComp)'&amp;amp;'-'&amp;amp;FIELD1 as ID,&lt;BR /&gt;FIELD1&amp;amp;'-'&amp;amp;FIELD2 as Desc;&lt;BR /&gt;select FIELD1, FIELD2 from SQL_TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #004d4d; font-size: 10pt;"&gt;Fact:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #004d4d; font-size: 10pt;"&gt;load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #004d4d; font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #004d4d; font-size: 10pt;"&gt;applymap('XY_Map', $(vComp)&amp;amp;'-'&amp;amp;left(FIELD99,7),desc) as Desc,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #004d4d; font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #004d4d; font-size: 10pt;"&gt;select FIELD99 from SQL_FACT_TABLE;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 16:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243138#M1187306</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-07T16:03:01Z</dc:date>
    </item>
    <item>
      <title>Why the ApplyMap does not work when concatenation is used?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243139#M1187307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but I know that and I have two tables. As opposed to the standard school example I'm trying to concatenate two fileds into one I do not understand why it doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 08:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243139#M1187307</guid>
      <dc:creator />
      <dc:date>2011-09-09T08:56:24Z</dc:date>
    </item>
    <item>
      <title>Why the ApplyMap does not work when concatenation is used?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243140#M1187308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx. I've tried this but am getting error that such field does not exist: Field not found - &amp;lt;Desc&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 08:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243140#M1187308</guid>
      <dc:creator />
      <dc:date>2011-09-09T08:58:25Z</dc:date>
    </item>
    <item>
      <title>Why the ApplyMap does not work when concatenation is used?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243141#M1187309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two tables (XY_Map and Fact) so there is no need for Resident.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 09:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243141#M1187309</guid>
      <dc:creator />
      <dc:date>2011-09-09T09:04:56Z</dc:date>
    </item>
    <item>
      <title>Why the ApplyMap does not work when concatenation is used?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243142#M1187310</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;In your original post, you are using a variable '$(vComp)'. What does this variable store? Have you checked that the variable works fine and that the final table (not using the MAPPING prefix) returns the expected values? Are they numeric or literal? If it's a literal (a string) did you try using the Text() function to enclose the whole expression in both the mapping table and the parameter passed to the ApplyMap() function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post some sample application so we can check further?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 09:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243142#M1187310</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-09-09T09:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why the ApplyMap does not work when concatenation is used?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243143#M1187311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also can't see any principle problem with using concatenation in mapping table and applymap (see attached sample).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you be a bit more precise in telling us what you mean with "not work" (Error message, no results, wrong results,&amp;nbsp; computer crashes etc)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 09:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243143#M1187311</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-09T09:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why the ApplyMap does not work when concatenation is used?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243144#M1187312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ideas. I've used the Stefan's example to give you more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I see now it's not an issue with using concatenated fields it's an issue of using it in For...Next loops or using several pairs of tables like for several companies and changing a variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting incomplete results as I don't get connected ALL key fields from the FACT tables and associating MAP tables for second, third, etc tables. I got it connected only for the first table. Please check the modified example Stefan gave me. Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;swuehl wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also can't see any principle problem with using concatenation in mapping table and applymap (see attached sample).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you be a bit more precise in telling us what you mean with "not work" (Error message, no results, wrong results,&amp;nbsp; computer crashes etc)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 05:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243144#M1187312</guid>
      <dc:creator />
      <dc:date>2011-09-10T05:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why the ApplyMap does not work when concatenation is used?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243145#M1187313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just gave the mapping tables a unique name (vComp for example). Seems to work now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 10:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243145#M1187313</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-10T10:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why the ApplyMap does not work when concatenation is used?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243146#M1187314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefan. I would not guess that as I've seen correct records in the Table Viewer when I ommited the 'mapping' part. Anyway, thank you very much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 13:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-the-ApplyMap-does-not-work-when-concatenation-is-used/m-p/243146#M1187314</guid>
      <dc:creator />
      <dc:date>2011-09-10T13:03:29Z</dc:date>
    </item>
  </channel>
</rss>

