<?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 Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation-Error/m-p/1449361#M806118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In which context are you using the variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are using them as arguments or part of the argument of an aggregation function, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nesting an aggregation function into another is in general not possible (you already noticed that the TOTAL qualifier is breaking the rule) without the use of advanced aggregation, i.e. the Aggr() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2967"&gt;AGGR...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2017 21:16:19 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-10-27T21:16:19Z</dc:date>
    <item>
      <title>Nested Aggregation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation-Error/m-p/1449360#M806117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon everyone, sorry if this seems like a very simple question, but I'm attempting to perform some calculations in QV11 and my straight table is reporting the expressions I'm using error out because "Nested aggregation is not allowed". This is the formula I'm using (and the multiple ways I attempted to use it, though I believe they all are basically doing the same thing with the exception of using Total within the Sum statements (but that results in incorrect data)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="181345" alt="Test.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181345_Test.JPG" style="height: 168px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the code above, the first two variables work w/o issue, but when I try to use vGTFuelRate or vGTResult I get the nested aggregation error. I tried to resolve using total (which worked, but didn't give me the correct results) and explicitly creating the sum statements as their own variables (which gives the same error). I'm afraid I'm rather new to qlikview, and haven't had much experience with the aggr function, which I'm guessing may be necessary here. I don't know if anyone has any advice, but I would appreciate any insight with this problem.&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/Nested-Aggregation-Error/m-p/1449360#M806117</guid>
      <dc:creator>cody_summers</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Aggregation-Error/m-p/1449361#M806118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In which context are you using the variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are using them as arguments or part of the argument of an aggregation function, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nesting an aggregation function into another is in general not possible (you already noticed that the TOTAL qualifier is breaking the rule) without the use of advanced aggregation, i.e. the Aggr() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2967"&gt;AGGR...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 21:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Aggregation-Error/m-p/1449361#M806118</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-27T21:16:19Z</dc:date>
    </item>
  </channel>
</rss>

