<?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 and Aggregate functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Applymap-and-Aggregate-functions/m-p/108634#M762975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to do group by in the mapping load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;UnitPriceMap:&lt;/P&gt;&lt;P&gt;Mapping LOAD&lt;/P&gt;&lt;P&gt;Plant &amp;amp; Material &amp;amp; Month([Posting Date]) &amp;amp; Year([Posting Date])&amp;amp; [Document currency] as UnitPriceKey,&lt;/P&gt;&lt;P&gt;sum([Amount in Doc Curr])/sum([Quantity]) as UnitPriceDocCurrencyNew&lt;/P&gt;&lt;P&gt;Resident Temp_Spend&lt;/P&gt;&lt;P&gt;Group By Plant , Material , Month([Posting Date]), Year([Posting Date]), [Document currency];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spend: &lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;ApplyMap('UnitPriceMap',Plant &amp;amp; Material &amp;amp; Month([Posting Date])&amp;amp; Year([Posting Date]) &amp;amp; [Document currency])as UnitPrice_Monthly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently it is pulling the concatenation as UnitPrice_Monthly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Applymap and Aggregate functions</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-Aggregate-functions/m-p/108634#M762975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to do group by in the mapping load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;UnitPriceMap:&lt;/P&gt;&lt;P&gt;Mapping LOAD&lt;/P&gt;&lt;P&gt;Plant &amp;amp; Material &amp;amp; Month([Posting Date]) &amp;amp; Year([Posting Date])&amp;amp; [Document currency] as UnitPriceKey,&lt;/P&gt;&lt;P&gt;sum([Amount in Doc Curr])/sum([Quantity]) as UnitPriceDocCurrencyNew&lt;/P&gt;&lt;P&gt;Resident Temp_Spend&lt;/P&gt;&lt;P&gt;Group By Plant , Material , Month([Posting Date]), Year([Posting Date]), [Document currency];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spend: &lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;ApplyMap('UnitPriceMap',Plant &amp;amp; Material &amp;amp; Month([Posting Date])&amp;amp; Year([Posting Date]) &amp;amp; [Document currency])as UnitPrice_Monthly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently it is pulling the concatenation as UnitPrice_Monthly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-Aggregate-functions/m-p/108634#M762975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and Aggregate functions</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-Aggregate-functions/m-p/108635#M762976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you not getting any values in your UnitPrice_Monthly? May be try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UnitPriceMap:&lt;/P&gt;&lt;P&gt;MAPPING LOAD *;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Plant &amp;amp; Material &amp;amp; Month([Posting Date]) &amp;amp; Year([Posting Date])&amp;amp; [Document currency] as UnitPriceKey,&lt;/P&gt;&lt;P&gt;sum([Amount in Doc Curr])/sum([Quantity]) as UnitPriceDocCurrencyNew&lt;/P&gt;&lt;P&gt;Resident Temp_Spend&lt;/P&gt;&lt;P&gt;Group By Plant , Material , Month([Posting Date]), Year([Posting Date]), [Document currency];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spend:&lt;/P&gt;&lt;P&gt;LOAD *, ApplyMap('UnitPriceMap',UnitPriceKey)as UnitPrice_Monthly;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plant &amp;amp; Material &amp;amp; Month([Posting Date])&amp;amp; Year([Posting Date]) &amp;amp; [Document currency] AS UnitPriceKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yourotherfieldshere&lt;/P&gt;&lt;P&gt;From Source;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 20:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-Aggregate-functions/m-p/108635#M762976</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-07-19T20:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and Aggregate functions</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-Aggregate-functions/m-p/108636#M762977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like that there are no matching values between both tables - maybe an issue with the formatting or the data-quality by one or several fields - and because you didn't specify the third parameter (for returning a default-value if no matching value is available) the lookup-value is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 14:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-Aggregate-functions/m-p/108636#M762977</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-07-20T14:45:37Z</dc:date>
    </item>
  </channel>
</rss>

