<?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: AGGR() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR/m-p/1176811#M886741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, I recommend read this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3744"&gt;Aggregations and Function Classes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice Explanation about AGGR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 14:03:51 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2016-09-09T14:03:51Z</dc:date>
    <item>
      <title>AGGR()</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR/m-p/1176809#M886739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to understand the AGGR Function. Can someone show me how the AGGR is calcuated based of the example numbers below? Visually I need to undertstand how this is calculated. For example Region MID differs from 20.8 to 52.5. I know it's based off the Program but how is that calulcated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136959_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&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/AGGR/m-p/1176809#M886739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR()</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR/m-p/1176810#M886740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for region=mid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;column 1&lt;/P&gt;&lt;P&gt;sum(all)=125&amp;nbsp;&amp;nbsp; count(id)=6&amp;nbsp; 125/6=20.83&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;column2&lt;/P&gt;&lt;P&gt;sum for region=mid&amp;nbsp; =125 count(id)=6 125/6=20.83&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;column3&lt;/P&gt;&lt;P&gt;sum for region=mid and program=high=5 count(id)=5 25/5=&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum for region=mid and program=low=100 count(id)=1 100/1=&lt;STRONG&gt;100&amp;nbsp; and (5+100) / 2 (2 diferent aggregatin)=52.5&lt;/STRONG&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 13:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR/m-p/1176810#M886740</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2016-09-09T13:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR()</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR/m-p/1176811#M886741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, I recommend read this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3744"&gt;Aggregations and Function Classes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice Explanation about AGGR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 14:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR/m-p/1176811#M886741</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-09T14:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR()</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR/m-p/1176812#M886742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a nutshell, what AGGR does is apply a level of aggregation prior to your final aggregation. You can think of this as building a temporary table prior to your final aggregation. The columns in this table are the second and following parameters in the AGGR function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in your example above, avg(Days) is the same as avg(aggr(avg(Days), region))) as your table includes region anyway, thus making the aggr redundant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your last column you are using AGGR to aggregate avg(Days) across region and Program. If you build a chart with region and Program and avg(days) you can see what the data looks like. You then average this measure up to the region level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd be a bit cautious with this particular calculation as the result is that all Programs will be given equal weight. Averages of averages aren't generally a good thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&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, 09 Sep 2016 14:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR/m-p/1176812#M886742</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2016-09-09T14:07:37Z</dc:date>
    </item>
  </channel>
</rss>

