<?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 Average count of subgroups in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-count-of-subgroups/m-p/52729#M8784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping to get some help on the below which I cannot seem to find a solution for.&lt;/P&gt;&lt;P&gt;I need to create a chart which counts the average number of items per group/ sub-group, and also the deviation away from the average for each number in the sub-group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I am trying to calculate the mean/ average count of items per dimension group (the columns in yellow are where I need the help).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the below example:&lt;/P&gt;&lt;P&gt;How to count number of sub-groups per Group&lt;/P&gt;&lt;P&gt;How to calculate average # of items in each Group.&lt;/P&gt;&lt;P&gt;Next step will be to calculate the deviation from the average for each Group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume I will need the aggr function, but I have little experience with Aggr and I am struggling to see how to apply the formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&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/204285_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2018 13:38:05 GMT</pubDate>
    <dc:creator>bigdataxhi</dc:creator>
    <dc:date>2018-06-04T13:38:05Z</dc:date>
    <item>
      <title>Average count of subgroups</title>
      <link>https://community.qlik.com/t5/QlikView/Average-count-of-subgroups/m-p/52729#M8784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping to get some help on the below which I cannot seem to find a solution for.&lt;/P&gt;&lt;P&gt;I need to create a chart which counts the average number of items per group/ sub-group, and also the deviation away from the average for each number in the sub-group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I am trying to calculate the mean/ average count of items per dimension group (the columns in yellow are where I need the help).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the below example:&lt;/P&gt;&lt;P&gt;How to count number of sub-groups per Group&lt;/P&gt;&lt;P&gt;How to calculate average # of items in each Group.&lt;/P&gt;&lt;P&gt;Next step will be to calculate the deviation from the average for each Group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume I will need the aggr function, but I have little experience with Aggr and I am struggling to see how to apply the formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&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/204285_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 13:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-count-of-subgroups/m-p/52729#M8784</guid>
      <dc:creator>bigdataxhi</dc:creator>
      <dc:date>2018-06-04T13:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Average count of subgroups</title>
      <link>https://community.qlik.com/t5/QlikView/Average-count-of-subgroups/m-p/52730#M8785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;How to count number of sub-groups per Group&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT TOTAL &amp;lt;Group&amp;gt; Sub-Group)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;How to calculate average # of items in each Group.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Avg(TOTAL &amp;lt;Group&amp;gt; Aggr(Count(Items), Group, [Sub-Group]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stdev will be like this &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Stdev(TOTAL &amp;lt;Group&amp;gt; Aggr(Count(Items), Group, [Sub-Group]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 13:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-count-of-subgroups/m-p/52730#M8785</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-04T13:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Average count of subgroups</title>
      <link>https://community.qlik.com/t5/QlikView/Average-count-of-subgroups/m-p/52731#M8786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - that was extremely helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 14:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-count-of-subgroups/m-p/52731#M8786</guid>
      <dc:creator>bigdataxhi</dc:creator>
      <dc:date>2018-06-04T14:31:18Z</dc:date>
    </item>
  </channel>
</rss>

