<?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 ApplyMap Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229647#M81540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, I have a problem using an applymap as described below.&lt;/P&gt;&lt;P&gt;Table1_Map:&lt;/P&gt;&lt;P&gt;LOAD Cust_Id,&lt;/P&gt;&lt;P&gt;Cust_Date&lt;/P&gt;&lt;P&gt;FROM .............;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD My_Date AS Cust_Date,&lt;/P&gt;&lt;P&gt;My_Year as Cust_Year,&lt;/P&gt;&lt;P&gt;My_Month as Cust_Month,&lt;/P&gt;&lt;P&gt;My_Day as Cust_Day,&lt;/P&gt;&lt;P&gt;My_WEEK as Cust_Week,&lt;/P&gt;&lt;P&gt;applymap('Table1_Map', Cust_Date)&lt;/P&gt;&lt;P&gt;FROM ...................;&lt;/P&gt;&lt;P&gt;When I run my script, I get an error message saying field not found - &amp;lt;Cust_Date&amp;gt;&lt;/P&gt;&lt;P&gt;I know it has something to do with the fact that I am renaming my fields in table 2. can someone suggest a way for me to fix this, without having to change my field renaming in table 2.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2011 12:10:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-26T12:10:06Z</dc:date>
    <item>
      <title>ApplyMap Problem</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229647#M81540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, I have a problem using an applymap as described below.&lt;/P&gt;&lt;P&gt;Table1_Map:&lt;/P&gt;&lt;P&gt;LOAD Cust_Id,&lt;/P&gt;&lt;P&gt;Cust_Date&lt;/P&gt;&lt;P&gt;FROM .............;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD My_Date AS Cust_Date,&lt;/P&gt;&lt;P&gt;My_Year as Cust_Year,&lt;/P&gt;&lt;P&gt;My_Month as Cust_Month,&lt;/P&gt;&lt;P&gt;My_Day as Cust_Day,&lt;/P&gt;&lt;P&gt;My_WEEK as Cust_Week,&lt;/P&gt;&lt;P&gt;applymap('Table1_Map', Cust_Date)&lt;/P&gt;&lt;P&gt;FROM ...................;&lt;/P&gt;&lt;P&gt;When I run my script, I get an error message saying field not found - &amp;lt;Cust_Date&amp;gt;&lt;/P&gt;&lt;P&gt;I know it has something to do with the fact that I am renaming my fields in table 2. can someone suggest a way for me to fix this, without having to change my field renaming in table 2.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 12:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229647#M81540</guid>
      <dc:creator />
      <dc:date>2011-04-26T12:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap Problem</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229648#M81541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to your code above, the mapping table needs the Cust_Id to return the Cust_Date, but my guess is that you want the opposite: given the Date, get the Id. If my assumption is correct, then the code is slightly different:&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"&gt;&lt;P&gt;Table1_Map:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MAPPING&lt;/STRONG&gt; LOAD Cust_Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cust_Id&lt;/P&gt;&lt;P&gt;FROM .............; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD &lt;STRONG&gt;My_Date&lt;/STRONG&gt; AS Cust_Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My_Year as Cust_Year, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My_Month as Cust_Month, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My_Day as Cust_Day, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My_WEEK as Cust_Week, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Table1_Map', &lt;STRONG&gt;My_Date&lt;/STRONG&gt;) &lt;STRONG&gt;AS Cust_Id&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;FROM ...................;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 12:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229648#M81541</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-26T12:21:33Z</dc:date>
    </item>
    <item>
      <title>ApplyMap Problem</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229649#M81542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel, I have tried out your suggestion, but it causes synthetic keys to be created and I end of getting 3 tables instead of 1.&lt;/P&gt;&lt;P&gt;Any more pointers or suggestions?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 12:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229649#M81542</guid>
      <dc:creator />
      <dc:date>2011-04-26T12:29:57Z</dc:date>
    </item>
    <item>
      <title>ApplyMap Problem</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229650#M81543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;In your original code you were missing the keyword MAPPING in front of the load statement. If you look at Miguel's code you will see that this keyword is there. When you copied his code did you put this in there?&lt;/P&gt;&lt;P&gt;Without the MAPPING prefix the table is treated as a normal table. This means any ApplyMap statement using that table will fail and simply return null. It will also mean the table appears in the data model (which never happens with Mapping tables) and will link as appropriate.&lt;/P&gt;&lt;P&gt;It is very easy to miss the MAPPING prefix - especially as the wizard does not give an option to add it. It is always the first thing to check if you get null values back.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 12:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229650#M81543</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-04-26T12:37:30Z</dc:date>
    </item>
    <item>
      <title>ApplyMap Problem</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229651#M81544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys, it is working now. I missed out the key words "MAPPING"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 13:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229651#M81544</guid>
      <dc:creator />
      <dc:date>2011-04-26T13:00:42Z</dc:date>
    </item>
    <item>
      <title>ApplyMap Problem</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229652#M81545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Kindly refer the attached sample application&lt;/P&gt;&lt;P&gt;i hope it will help u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sampath Kumar . G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 13:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229652#M81545</guid>
      <dc:creator />
      <dc:date>2011-04-26T13:12:42Z</dc:date>
    </item>
    <item>
      <title>ApplyMap Problem</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229653#M81546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may find this link useful for more information on the &lt;A class="jive-link-external-small" href="http://bit.ly/kQcAZ5" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;ApplyMap Statement&lt;/A&gt;: &lt;A class="jive-link-external-small" href="http://bit.ly/kQcAZ5" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;http://bit.ly/kQcAZ5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;It's a blog post detailing the syntax of the statement and it's various uses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 05:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-Problem/m-p/229653#M81546</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-06-08T05:59:31Z</dc:date>
    </item>
  </channel>
</rss>

