<?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: MAP..USING, Mapping LOAD not working for me in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608803#M680030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your very fast reply &lt;A href="https://community.qlik.com/qlik-users/63925"&gt;dathu.qv&lt;/A&gt;&lt;A href="https://community.qlik.com/qlik-users/63925"&gt;dathu.qv&lt;/A&gt;. So, I should...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create the map: &lt;STRONG&gt;Mapping Load&lt;/STRONG&gt;....&lt;/LI&gt;&lt;LI&gt;Load the data into memory: &lt;STRONG&gt;LOAD from QVD;&lt;/STRONG&gt; (and repeat)&lt;/LI&gt;&lt;LI&gt;Apply the map: &lt;STRONG&gt;MAP Code using codeMap;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Turn off mapping: &lt;STRONG&gt;UNMAP Code;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you meant? The thing is, that's what I tried first after reading the Help file. That didn't work for me so I tried it as per my original post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 May 2014 15:29:28 GMT</pubDate>
    <dc:creator>lawrenceiow</dc:creator>
    <dc:date>2014-05-07T15:29:28Z</dc:date>
    <item>
      <title>MAP..USING, Mapping LOAD not working for me</title>
      <link>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608801#M680028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to clean my data. I have various different "codes" which mean the same thing and I think I need to create a table to remap the codes to the correct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have created the following (this is an example, I have added comments here to explain what &lt;EM&gt;I think&lt;/EM&gt; I'm doing):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;//Create a lookup table. My spreadsheet has 12 columns and I just want to use two from the middle labelled as Code and newCode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;codeMap:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Mapping LOAD&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;Code&lt;/SPAN&gt;, &lt;SPAN style="color: #993300;"&gt;newCode&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; [My spreadsheet.xlsx]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="color: #0000ff;"&gt;ooxml, embedded labels, table is&lt;/SPAN&gt; HB070514)&lt;BR /&gt;WHERE &lt;SPAN style="color: #993300;"&gt;Include&lt;/SPAN&gt;='Y';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Example structure...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Include, WSDgrp, Code, newCode, grp2, grp3, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A1,&amp;nbsp;&amp;nbsp; A,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abcd, abc, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A2,&amp;nbsp;&amp;nbsp; A,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abcd, abc, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B1,&amp;nbsp;&amp;nbsp; B,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bcde, bcd, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2,&amp;nbsp;&amp;nbsp; B,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bcde, bcd, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B3,&amp;nbsp;&amp;nbsp; B,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bcde, bcd, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: arial,helvetica,sans-serif;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;// I now have a "mapping table" called CodeMap which contains two columns named Code and newCode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;// Turn mapping on&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;MAP&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;Code &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;using&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;codeMap&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;// Load data from fact tables created elsewhere, each table has a field called Code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FactTable:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD &lt;SPAN style="color: #000000;"&gt;*&lt;/SPAN&gt; FROM&lt;/SPAN&gt; [Fact table 1.qvd] (&lt;SPAN style="color: #0000ff;"&gt;qvd&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Concatenate LOAD &lt;SPAN style="color: #000000;"&gt;*&lt;/SPAN&gt; FROM&lt;/SPAN&gt; [Fact table 2.qvd] (&lt;SPAN style="color: #0000ff;"&gt;qvd&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Concatenate LOAD &lt;SPAN style="color: #000000;"&gt;*&lt;/SPAN&gt; FROM&lt;/SPAN&gt; [Fact table 3.qvd] (&lt;SPAN style="color: #0000ff;"&gt;qvd&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;//Turn mapping off&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;UNMAP&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;Code&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what I &lt;SPAN style="text-decoration: underline;"&gt;think&lt;/SPAN&gt; should have happened by now is the contents of the field "Code" in each of the qvd files have had their values changed to the equivalents in the codeMap table. If record 1 of the qvd file has A2 in the Code field, record 1 of the now resident FactTable contains A in the Code field instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, pre-viewing the data in the Table Viewer shows that A2 is still in that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I'm not doing it right - the &lt;SPAN style="color: #0000ff;"&gt;mapping load&lt;/SPAN&gt; and &lt;SPAN style="color: #0000ff;"&gt;map..using&lt;/SPAN&gt; commands are not doing what I think they're supposed to do, or does &lt;SPAN style="color: #0000ff;"&gt;map..using&lt;/SPAN&gt; not work on qvd files?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 15:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608801#M680028</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2014-05-07T15:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: MAP..USING, Mapping LOAD not working for me</title>
      <link>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608802#M680029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Map...Using will work only on Resident loads only. Please find the below from Help file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mapping is done last in the chain of events leading up to the field being stored in the internal table in QlikView. &lt;STRONG&gt;This means that mapping is not done every time a field name is encountered as part of an expression, but rather when the value is stored under the field name in the internal table.&lt;/STRONG&gt; If mapping on the expression level is required, the &lt;SPAN class="Bold"&gt;Applymap()&lt;/SPAN&gt; function has to be used instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 15:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608802#M680029</guid>
      <dc:creator />
      <dc:date>2014-05-07T15:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: MAP..USING, Mapping LOAD not working for me</title>
      <link>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608803#M680030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your very fast reply &lt;A href="https://community.qlik.com/qlik-users/63925"&gt;dathu.qv&lt;/A&gt;&lt;A href="https://community.qlik.com/qlik-users/63925"&gt;dathu.qv&lt;/A&gt;. So, I should...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create the map: &lt;STRONG&gt;Mapping Load&lt;/STRONG&gt;....&lt;/LI&gt;&lt;LI&gt;Load the data into memory: &lt;STRONG&gt;LOAD from QVD;&lt;/STRONG&gt; (and repeat)&lt;/LI&gt;&lt;LI&gt;Apply the map: &lt;STRONG&gt;MAP Code using codeMap;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Turn off mapping: &lt;STRONG&gt;UNMAP Code;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you meant? The thing is, that's what I tried first after reading the Help file. That didn't work for me so I tried it as per my original post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 15:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608803#M680030</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2014-05-07T15:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: MAP..USING, Mapping LOAD not working for me</title>
      <link>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608804#M680031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you double checked that your mapping values in field Code match the loaded ones? For example, load your mapping table without MAPPING prefix with appropriate field names, linking the two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are your tables linked correctly and does filtering in list box work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are mapping string values, take care of leading / trailing spaces, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are limitations using a qvd for the Mapping table, but I AFAIR, using it for loading in the field values to map should be ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 15:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608804#M680031</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-07T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: MAP..USING, Mapping LOAD not working for me</title>
      <link>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608805#M680032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Prior to my attempt at using apply map I have loaded the mapping table as a separate table (not a mapping load) - the two tables were joined on Code as expected. I felt it would be better to remap the Code field instead of having a separate table (though I'm thinking of sticking with what works). So, yes, I have already done as per your suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 16:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608805#M680032</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2014-05-07T16:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: MAP..USING, Mapping LOAD not working for me</title>
      <link>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608806#M680033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like you might need to un-optimize your QVD load also for the fields to be mapped:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FactTable:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;LOAD &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;*&lt;/SPAN&gt; FROM&lt;/SPAN&gt; [Fact table 1.qvd] (&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;qvd&lt;/SPAN&gt;) WHERE 1=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Concatenate LOAD &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;*&lt;/SPAN&gt; FROM&lt;/SPAN&gt; [Fact table 2.qvd] (&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;qvd&lt;/SPAN&gt;) WHERE 1=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Concatenate LOAD &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;*&lt;/SPAN&gt; FROM&lt;/SPAN&gt; [Fact table 3.qvd] (&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;qvd&lt;/SPAN&gt;) WHERE 1=1;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can also look into using APPLYMAP() function in the LOAD statement instead of MAP ... USING&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 16:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608806#M680033</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-07T16:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: MAP..USING, Mapping LOAD not working for me</title>
      <link>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608807#M680034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's it!!!&amp;nbsp; Thanks &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;, WHERE 1=1 solved it. Brilliant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 17:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAP-USING-Mapping-LOAD-not-working-for-me/m-p/608807#M680034</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2014-05-07T17:14:23Z</dc:date>
    </item>
  </channel>
</rss>

