<?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: Standard deviation with aggregate set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Standard-deviation-with-aggregate-set-analysis/m-p/1128612#M520032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're doing two completely different aggregations. One over only MonthYear and the other over MonthYear and ActivityActual. If you aggregate both over MonthYear and ActivityActual or over MonthKey and ActivityActual&lt;STRONG&gt; &lt;/STRONG&gt;or over only MonthKey or only over MonthYear then you'll get the same results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2016 12:38:18 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-08-04T12:38:18Z</dc:date>
    <item>
      <title>Standard deviation with aggregate set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Standard-deviation-with-aggregate-set-analysis/m-p/1128611#M520031</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 am trying to apply set analysis to a standard deviation equation which uses an aggregate function.&amp;nbsp; I am having real difficulty getting this to work correctly and would greatly appreciate and assistance or guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The equation that I am using is &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; Stdev(aggr(sum({&amp;lt;PODGroup4Description = {'AandE'}, MonthKey = {'&amp;lt;=$(vMonthPosition)'}&amp;gt;}ActivityActual), MonthKey, ActivityActual))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The variable $(vMonthPosition) = 13&amp;nbsp; but will be calculated within the application to allow it to be dynamic.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This equation gives me a figure of 262 for the standard deviation instead of the 108 I am expecting.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Looking at the comments about the aggregate function I need to apply the set analysis within the outside of the aggregate but when I do this it errors and gives me nothing.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Does anyone have an idea as to where I am going wrong with this or what I might be able to do to fix it.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Kind Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 10:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Standard-deviation-with-aggregate-set-analysis/m-p/1128611#M520031</guid>
      <dc:creator>jarrad_murray</dc:creator>
      <dc:date>2016-08-04T10:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Standard deviation with aggregate set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Standard-deviation-with-aggregate-set-analysis/m-p/1128612#M520032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're doing two completely different aggregations. One over only MonthYear and the other over MonthYear and ActivityActual. If you aggregate both over MonthYear and ActivityActual or over MonthKey and ActivityActual&lt;STRONG&gt; &lt;/STRONG&gt;or over only MonthKey or only over MonthYear then you'll get the same results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 12:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Standard-deviation-with-aggregate-set-analysis/m-p/1128612#M520032</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-04T12:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Standard deviation with aggregate set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Standard-deviation-with-aggregate-set-analysis/m-p/1128613#M520033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should use a mastercalendar! then its really easy to filter the daterange.&lt;/P&gt;&lt;P&gt;See attached sample qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 13:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Standard-deviation-with-aggregate-set-analysis/m-p/1128613#M520033</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-08-04T13:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Standard deviation with aggregate set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Standard-deviation-with-aggregate-set-analysis/m-p/1128614#M520034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 14:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Standard-deviation-with-aggregate-set-analysis/m-p/1128614#M520034</guid>
      <dc:creator>jarrad_murray</dc:creator>
      <dc:date>2016-08-04T14:33:45Z</dc:date>
    </item>
  </channel>
</rss>

