<?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: AVG(Count) nested aggregation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887738#M73151</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I cannot really tell from your screenshot what the issue is.&lt;/P&gt;
&lt;P&gt;My Month(MonthName) works as MonthName was created using MonthName() in script. Is your MonthCode column just Month(MonthName), or something else?&lt;/P&gt;
&lt;P&gt;If you share the full formulae that are not working (either in screenshot by making columns wider, or paste them in) might be clearer.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20220201_2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71377i7FA2367A13DE7711/image-size/large?v=v2&amp;amp;px=999" role="button" title="20220201_2.png" alt="20220201_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Feb 2022 16:58:06 GMT</pubDate>
    <dc:creator>chrismarlow</dc:creator>
    <dc:date>2022-02-01T16:58:06Z</dc:date>
    <item>
      <title>AVG(Count) nested aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887204#M73114</link>
      <description>&lt;P&gt;I'm trying to get a YTD average of a count of employees&lt;/P&gt;
&lt;P&gt;I use this formula to count the employees&lt;/P&gt;
&lt;P&gt;COUNT(Global Career Band) in a line chart, my date field is called MonthName, in format 'MMM-YY'&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joosh_1-1643646580067.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71284i122A1367EFE75C3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joosh_1-1643646580067.png" alt="Joosh_1-1643646580067.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can i use this chart to show a YTD average, so on January it would show 27257, but on february it would take the average of february and january and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 16:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887204#M73114</guid>
      <dc:creator>Joosh</dc:creator>
      <dc:date>2022-01-31T16:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: AVG(Count) nested aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887216#M73119</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think you would use rangeavg/above wrapped around the count, but would need to know more about the data model to give more.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 17:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887216#M73119</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2022-01-31T17:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: AVG(Count) nested aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887239#M73123</link>
      <description>&lt;P&gt;Thanks for this,&lt;/P&gt;
&lt;P&gt;Every month has a csv where each row is one employee, one of the columns in this is “Global Career Band”, and I’m just currently counting every row for every month which is giving me employee count, for example there would be 27257 rows of data in January File. Hopefully that covers the model&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 18:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887239#M73123</guid>
      <dc:creator>Joosh</dc:creator>
      <dc:date>2022-01-31T18:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: AVG(Count) nested aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887252#M73124</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;So something like this;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20220131_1.png" style="width: 712px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71291i057E27D2E2C4FEFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="20220131_1.png" alt="20220131_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 18:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887252#M73124</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2022-01-31T18:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: AVG(Count) nested aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887263#M73125</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;So this is almost there, i will show you my result, please ignore all the filter exclusions in the count.&lt;/P&gt;
&lt;P&gt;So what i want is it should not include prior year values in the average, for example the YTD average for Jan 20 should be 27645 rather than average of Jul-19 and Jan-20. Every new year the average should reset if that makes sense? Could you add some 2021 values and show me how that work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joosh_1-1643657491309.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71295i3002271D991093A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joosh_1-1643657491309.png" alt="Joosh_1-1643657491309.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks for that range above solution, it has helped me get alot closer than i was.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Josh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 19:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887263#M73125</guid>
      <dc:creator>Joosh</dc:creator>
      <dc:date>2022-01-31T19:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: AVG(Count) nested aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887557#M73139</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;So as long as your data is continuous you could try something like the below;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20220201_1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71352iCA933E87BB7540DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="20220201_1.png" alt="20220201_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note I think this does start to fail if you start to slice &amp;amp; dice and get missing months.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 12:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887557#M73139</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2022-02-01T12:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: AVG(Count) nested aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887721#M73150</link>
      <description>&lt;P&gt;So I tried what you tried and i ended up getting NULLs, i then created a new column called MonthCode shown in the 4th column and used this in the expression like so&lt;/P&gt;
&lt;P&gt;RangeAvg(Above(COUNT([Global Career Band]),0,MonthCode))&lt;/P&gt;
&lt;P&gt;as you can see below getting NULL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joosh_1-1643733401034.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71374iC928AC9F478069C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joosh_1-1643733401034.png" alt="Joosh_1-1643733401034.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Josh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 16:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887721#M73150</guid>
      <dc:creator>Joosh</dc:creator>
      <dc:date>2022-02-01T16:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: AVG(Count) nested aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887738#M73151</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I cannot really tell from your screenshot what the issue is.&lt;/P&gt;
&lt;P&gt;My Month(MonthName) works as MonthName was created using MonthName() in script. Is your MonthCode column just Month(MonthName), or something else?&lt;/P&gt;
&lt;P&gt;If you share the full formulae that are not working (either in screenshot by making columns wider, or paste them in) might be clearer.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20220201_2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71377i7FA2367A13DE7711/image-size/large?v=v2&amp;amp;px=999" role="button" title="20220201_2.png" alt="20220201_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 16:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887738#M73151</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2022-02-01T16:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: AVG(Count) nested aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887748#M73153</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joosh_0-1643735293633.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71378i3BDB065485B1E106/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joosh_0-1643735293633.png" alt="Joosh_0-1643735293633.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hi here you go, so i'm excluding a few selections (as you can see in the formulas) that are always applied on the dashboard, i want this chart to ignore some specific selections. I've used your Month(MonthName) also in this method&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 17:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887748#M73153</guid>
      <dc:creator>Joosh</dc:creator>
      <dc:date>2022-02-01T17:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: AVG(Count) nested aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887757#M73155</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;That is odd. Looks like you might have missing right bracket at the end .. but then you get 0 for the first row. I think the set analysis bit in there is a red herring.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 17:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887757#M73155</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2022-02-01T17:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: AVG(Count) nested aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887795#M73158</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joosh_0-1643741595173.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71387i098EAE63B70A3195/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joosh_0-1643741595173.png" alt="Joosh_0-1643741595173.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've updated it to use the {1} in the set analysis to ignore all selections. and it still is not liking it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Josh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 18:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AVG-Count-nested-aggregation/m-p/1887795#M73158</guid>
      <dc:creator>Joosh</dc:creator>
      <dc:date>2022-02-01T18:54:02Z</dc:date>
    </item>
  </channel>
</rss>

