<?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: Apply map coming in as zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Apply-map-coming-in-as-zero/m-p/1016032#M344296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there are some small typos in your code, but I assume they are just copy and paste errors.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt; I set up mapping tables at the end of my script:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[ML_table 3 field 1]:&lt;/P&gt;
&lt;P&gt;Mapping Load&lt;/P&gt;
&lt;P&gt;[primarykey],&lt;/P&gt;
&lt;P&gt;SUM([field) as [field1]&lt;/P&gt;
&lt;P&gt;Resident [table that the field is coming from]&lt;/P&gt;
&lt;P&gt;Group by [pirimarykey];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;on the table that I need to pull this field, I put applymaps at the end of my load script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Applymap ('ML_table 3 field 1',[primarykey],'N/A') as [mappingloadfield],&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;in a preceding load to that table, I use those fields in calculations.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I am getting '0's' in all of the columns. I have multiple applymaps in my loads and multiple mapping tables.&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You stated: "&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;I set up mapping tables at the end of my script:"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping tables need to be loaded before they are actually used (e.g. by using ApplyMap() ). Note there will be no script error if the mapping table does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that, check the results of your mappings before doing the calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2016 15:28:44 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-03-30T15:28:44Z</dc:date>
    <item>
      <title>Apply map coming in as zero</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-map-coming-in-as-zero/m-p/1016030#M344294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 8 tables and 4 of them need fields from other tables, sometimes 1 table pulls fields from 2 different tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set up mapping tables at the end of my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[ML_table 3 field 1]:&lt;/P&gt;&lt;P&gt;Mapping Load &lt;/P&gt;&lt;P&gt;[primarykey],&lt;/P&gt;&lt;P&gt;SUM([field) as [field1]&lt;/P&gt;&lt;P&gt;Resident [table that the field is coming from]&lt;/P&gt;&lt;P&gt;Group by [pirimarykey];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the table that I need to pull this field, I put applymaps at the end of my load script:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Applymap ('ML_table 3 field 1',[primarykey],'N/A') as [mappingloadfield],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a preceding load to that table, I use those fields in calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting '0's' in all of the columns. I have multiple applymaps in my loads and multiple mapping tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone assist?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 13:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-map-coming-in-as-zero/m-p/1016030#M344294</guid>
      <dc:creator />
      <dc:date>2016-03-30T13:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Apply map coming in as zero</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-map-coming-in-as-zero/m-p/1016031#M344295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see a reason for a fail here. Can you share the complete script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 15:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-map-coming-in-as-zero/m-p/1016031#M344295</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-30T15:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Apply map coming in as zero</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-map-coming-in-as-zero/m-p/1016032#M344296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there are some small typos in your code, but I assume they are just copy and paste errors.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt; I set up mapping tables at the end of my script:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[ML_table 3 field 1]:&lt;/P&gt;
&lt;P&gt;Mapping Load&lt;/P&gt;
&lt;P&gt;[primarykey],&lt;/P&gt;
&lt;P&gt;SUM([field) as [field1]&lt;/P&gt;
&lt;P&gt;Resident [table that the field is coming from]&lt;/P&gt;
&lt;P&gt;Group by [pirimarykey];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;on the table that I need to pull this field, I put applymaps at the end of my load script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Applymap ('ML_table 3 field 1',[primarykey],'N/A') as [mappingloadfield],&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;in a preceding load to that table, I use those fields in calculations.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I am getting '0's' in all of the columns. I have multiple applymaps in my loads and multiple mapping tables.&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You stated: "&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;I set up mapping tables at the end of my script:"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping tables need to be loaded before they are actually used (e.g. by using ApplyMap() ). Note there will be no script error if the mapping table does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that, check the results of your mappings before doing the calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 15:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-map-coming-in-as-zero/m-p/1016032#M344296</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-30T15:28:44Z</dc:date>
    </item>
  </channel>
</rss>

