<?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: Nested aggregation not allowed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-not-allowed/m-p/1722310#M723588</link>
    <description>&lt;P&gt;Have a look at the following Design Blog post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Pitfalls-of-the-Aggr-function/ba-p/1463275" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Pitfalls-of-the-Aggr-function/ba-p/1463275&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hopefully that may be of some further help.&amp;nbsp; It would most likely help if you attached a sample QVW file if you want further direct assistance, rather difficult to troubleshoot without that.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2020 18:21:19 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-06-25T18:21:19Z</dc:date>
    <item>
      <title>Nested aggregation not allowed</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-not-allowed/m-p/1707157#M723585</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I'm using the following expression on a table chart to collect the Growth Rate, and it's working perfectly:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=rate(3,0,-Avg({} LOPP/IGPD)* FirstSortedValue(TOTAL IGPD, -DVPG, 1),Avg({} LOPP/IGPD)* FirstSortedValue(TOTAL IGPD, -DVPG, 1))&lt;/LI-CODE&gt;&lt;P&gt;My Table chart has the following dimension:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(Date(AsOfDVPG)&amp;gt;today(),'',Date(AsOfDVPG))&lt;/LI-CODE&gt;&lt;P&gt;I'm trying to show the last available Growth Rate, when the user select a specific field. For that I'm trying to use the following expression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= FirstSortedValue( rate(3,0,-Avg({} LOPP/IGPD)* FirstSortedValue(TOTAL IGPD, -DVPG, 1),Avg({} LOPP/IGPD)* FirstSortedValue(TOTAL IGPD, -DVPG, 1)) -DVPG, 1)&lt;/LI-CODE&gt;&lt;P&gt;But I'm getting an error: "Error: Error in Expression: Nested aggregation not allowed" How can I do that?&lt;/P&gt;&lt;P&gt;How can I show the last available Growth Rate on a FieldBox?&lt;BR /&gt;In this example, I'm expecting to see 1.25%.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-not-allowed/m-p/1707157#M723585</guid>
      <dc:creator>brunolelli87</dc:creator>
      <dc:date>2024-11-16T18:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Nested aggregation not allowed</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-not-allowed/m-p/1707175#M723586</link>
      <description>&lt;P&gt;As you stated, it is not possible to directly nest two aggregation functions.&lt;/P&gt;&lt;P&gt;You have to use the AGGR() function "in between". A simpler example of how to use the AGGR() would be to get the sales amount for the top performing product: Max(AGGR(Sum(Sales), Product))&lt;/P&gt;&lt;P&gt;So your expression needs to be something like:&lt;/P&gt;&lt;P&gt;FirstSortedValue( &lt;STRONG&gt;AGGR(&lt;/STRONG&gt; rate(3,0,-Avg({} LOPP/IGPD)* FirstSortedValue(TOTAL IGPD, -DVPG, 1),Avg({} LOPP/IGPD)* FirstSortedValue(TOTAL IGPD, -DVPG, 1))&lt;STRONG&gt;, [list of fields for the inner aggregation])&lt;/STRONG&gt;,&amp;nbsp; -DVPG, 1)&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 15:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-not-allowed/m-p/1707175#M723586</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-06-01T15:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nested aggregation not allowed</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-not-allowed/m-p/1707177#M723587</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for your attention and assistance.&lt;BR /&gt;I tried using the following expression, but it did not work. I just got a Dash as a result.&lt;/P&gt;&lt;P&gt;=FirstSortedValue( AGGR( rate(3,0,-Avg( LOPP/IGPD)* FirstSortedValue(TOTAL IGPD, -DVPG, 1),Avg( LOPP/IGPD)* FirstSortedValue(TOTAL IGPD, -DVPG, 1)), &lt;STRONG&gt;STCK, DVPG&lt;/STRONG&gt;), -DVPG, 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;What's going on?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 15:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-not-allowed/m-p/1707177#M723587</guid>
      <dc:creator>brunolelli87</dc:creator>
      <dc:date>2020-06-01T15:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nested aggregation not allowed</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-not-allowed/m-p/1722310#M723588</link>
      <description>&lt;P&gt;Have a look at the following Design Blog post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Pitfalls-of-the-Aggr-function/ba-p/1463275" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Pitfalls-of-the-Aggr-function/ba-p/1463275&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hopefully that may be of some further help.&amp;nbsp; It would most likely help if you attached a sample QVW file if you want further direct assistance, rather difficult to troubleshoot without that.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 18:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-not-allowed/m-p/1722310#M723588</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-06-25T18:21:19Z</dc:date>
    </item>
  </channel>
</rss>

