<?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 Mapping nested aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-nested-aggregation/m-p/2005491#M1221526</link>
    <description>&lt;P&gt;Hello Friends,&lt;/P&gt;
&lt;P&gt;How do I write&amp;nbsp;Mapping nested aggregation in proper form if I keep it this way it throws an error stating nested aggregation is not allowed.&lt;BR /&gt;&amp;nbsp;IF(WildMatch(Forecast_Plant,'22','23') &amp;gt; 0&lt;BR /&gt;,sum(Forecast_QTY*(FACTUAL_MATL_COST))+sum(Forecast_QTY*FACTUAL_MATL_OH_COST) &lt;BR /&gt;+sum(Forecast_QTY*FACTUAL_RESOURCE_COST)+sum(Forecast_QTY*FACTUAL_OVERHEAD_COST) )&lt;BR /&gt;/sum(Forecast_QTY)&lt;/P&gt;
&lt;P&gt;*ApplyMap('map_conver_rate',DayStart(Date([ShipDate])),1),&lt;/P&gt;
&lt;P&gt;(sum(Forecast_QTY*(FACTUAL_MATL_COST))+sum(Forecast_QTY*FACTUAL_MATL_OH_COST) &lt;BR /&gt;+sum(Forecast_QTY*FACTUAL_RESOURCE_COST)+sum(Forecast_QTY*FACTUAL_OVERHEAD_COST) )&lt;BR /&gt;/sum(Forecast_QTY) as TL&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 19:53:05 GMT</pubDate>
    <dc:creator>danny4202001</dc:creator>
    <dc:date>2022-11-16T19:53:05Z</dc:date>
    <item>
      <title>Mapping nested aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-nested-aggregation/m-p/2005491#M1221526</link>
      <description>&lt;P&gt;Hello Friends,&lt;/P&gt;
&lt;P&gt;How do I write&amp;nbsp;Mapping nested aggregation in proper form if I keep it this way it throws an error stating nested aggregation is not allowed.&lt;BR /&gt;&amp;nbsp;IF(WildMatch(Forecast_Plant,'22','23') &amp;gt; 0&lt;BR /&gt;,sum(Forecast_QTY*(FACTUAL_MATL_COST))+sum(Forecast_QTY*FACTUAL_MATL_OH_COST) &lt;BR /&gt;+sum(Forecast_QTY*FACTUAL_RESOURCE_COST)+sum(Forecast_QTY*FACTUAL_OVERHEAD_COST) )&lt;BR /&gt;/sum(Forecast_QTY)&lt;/P&gt;
&lt;P&gt;*ApplyMap('map_conver_rate',DayStart(Date([ShipDate])),1),&lt;/P&gt;
&lt;P&gt;(sum(Forecast_QTY*(FACTUAL_MATL_COST))+sum(Forecast_QTY*FACTUAL_MATL_OH_COST) &lt;BR /&gt;+sum(Forecast_QTY*FACTUAL_RESOURCE_COST)+sum(Forecast_QTY*FACTUAL_OVERHEAD_COST) )&lt;BR /&gt;/sum(Forecast_QTY) as TL&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 19:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-nested-aggregation/m-p/2005491#M1221526</guid>
      <dc:creator>danny4202001</dc:creator>
      <dc:date>2022-11-16T19:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping nested aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-nested-aggregation/m-p/2005910#M1221535</link>
      <description>&lt;P&gt;For me it doesn't look like a nested aggregation - at least not if all references are fields and not variables. It might be that there is any bracket missing or reverse too much and/or misplaced.&lt;/P&gt;
&lt;P&gt;Beside of this you may shorten and/or optimize your expression, for example with something (simplified) like this:&lt;/P&gt;
&lt;P&gt;(sum(Forecast_QTY) * Factor1 * Factor2 *) /&amp;nbsp;sum(Forecast_QTY) * if(condition(applymap(), 1)&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 13:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-nested-aggregation/m-p/2005910#M1221535</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-17T13:58:24Z</dc:date>
    </item>
  </channel>
</rss>

