<?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: 3 Month avg value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/3-Month-avg-value/m-p/1337943#M840085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try this,&amp;nbsp; however the first two months in the selection is affected and the values are correct only from 3rd Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;if(sum({&amp;lt;Transaction_Category = {'Oil'}&amp;gt;}Sales_Value)&amp;gt;100, &lt;/P&gt;&lt;P&gt;&amp;nbsp; count( aggr( if(&lt;/P&gt;&lt;P&gt; (sum({&amp;lt;Transaction_Category = {'Oil'}&amp;gt;}Sales_Value) &amp;gt;=&lt;BR /&gt; (sum({&amp;lt;Transaction_Category = {'Oil','Fruits','Vegetables'}&amp;gt;}Sales_Value)*0.10)), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (sum({&amp;lt;Transaction_Category = {'Oil'}&amp;gt;}Sales_Value)/&lt;BR /&gt; sum({&amp;lt;Transaction_Category = {'Oil','Fruits','Vegetables'}&amp;gt;}Sales_Value))),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer, [Month Year]))) &lt;SPAN style="font-size: 8pt;"&gt;,0,3)), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))/3 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Apr 2017 10:19:06 GMT</pubDate>
    <dc:creator>snehamahaveer</dc:creator>
    <dc:date>2017-04-28T10:19:06Z</dc:date>
    <item>
      <title>3 Month avg value</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-avg-value/m-p/1337941#M840082</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 have a formula that calculate the no of customers that exceed specified limits and hence classified as engaged. &lt;/P&gt;&lt;P&gt;Now I need to amend this formula, to calculate the avg of last 3 month values (values calculated from the formula below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(sum({&amp;lt;Transaction_Category = {'Oil'}&amp;gt;}Sales_Value)&amp;gt;100, &lt;BR /&gt;&amp;nbsp; count( aggr( if(&lt;BR /&gt; &lt;/P&gt;&lt;P&gt; (sum({&amp;lt;Transaction_Category = {'Oil'}&amp;gt;}Sales_Value) &amp;gt;=&lt;BR /&gt; (sum({&amp;lt;Transaction_Category = {'Oil','Fruits','Vegetables'}&amp;gt;}Sales_Value)*0.10)), &lt;BR /&gt; &lt;BR /&gt; (sum({&amp;lt;Transaction_Category = {'Oil'}&amp;gt;}Sales_Value)/&lt;BR /&gt; sum({&amp;lt;Transaction_Category = {'Oil','Fruits','Vegetables'}&amp;gt;}Sales_Value))),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer, [Month Year]))) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg Month, Engaged Customers&lt;/P&gt;&lt;P&gt;Apr, 45&lt;/P&gt;&lt;P&gt;May, 40&lt;/P&gt;&lt;P&gt;Jun, 44&lt;/P&gt;&lt;P&gt;Jul, 50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then value for Jun =&amp;gt; (45+40+44)/3 = 43, Jul =&amp;gt; (40+44+50)/3 = 45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated, can someone please help me with this urgent request. Thank you.&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/3-Month-avg-value/m-p/1337941#M840082</guid>
      <dc:creator>snehamahaveer</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month avg value</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-avg-value/m-p/1337942#M840084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be You can use Rangeavg(above(&amp;lt;your expression&amp;gt;,3))&lt;/P&gt;&lt;P&gt;Use this blog. &lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-avg-value/m-p/1337942#M840084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-28T10:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month avg value</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-avg-value/m-p/1337943#M840085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try this,&amp;nbsp; however the first two months in the selection is affected and the values are correct only from 3rd Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;if(sum({&amp;lt;Transaction_Category = {'Oil'}&amp;gt;}Sales_Value)&amp;gt;100, &lt;/P&gt;&lt;P&gt;&amp;nbsp; count( aggr( if(&lt;/P&gt;&lt;P&gt; (sum({&amp;lt;Transaction_Category = {'Oil'}&amp;gt;}Sales_Value) &amp;gt;=&lt;BR /&gt; (sum({&amp;lt;Transaction_Category = {'Oil','Fruits','Vegetables'}&amp;gt;}Sales_Value)*0.10)), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (sum({&amp;lt;Transaction_Category = {'Oil'}&amp;gt;}Sales_Value)/&lt;BR /&gt; sum({&amp;lt;Transaction_Category = {'Oil','Fruits','Vegetables'}&amp;gt;}Sales_Value))),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer, [Month Year]))) &lt;SPAN style="font-size: 8pt;"&gt;,0,3)), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))/3 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-avg-value/m-p/1337943#M840085</guid>
      <dc:creator>snehamahaveer</dc:creator>
      <dc:date>2017-04-28T10:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month avg value</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-avg-value/m-p/1337944#M840086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(Above(Sum({&amp;lt;Month=&amp;gt;} &amp;lt;your expression&amp;gt;), 0, 3))??&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-avg-value/m-p/1337944#M840086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-28T10:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month avg value</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-avg-value/m-p/1337945#M840087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It says Error: &lt;SPAN style="text-decoration: underline;"&gt;Error in expression: Nested aggregation not allowed.&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-avg-value/m-p/1337945#M840087</guid>
      <dc:creator>snehamahaveer</dc:creator>
      <dc:date>2017-04-28T10:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month avg value</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-avg-value/m-p/1337946#M840088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Month= in the set expressions of your expression. The error is because we are doing sum on aggregated value. Can you share a sample ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-avg-value/m-p/1337946#M840088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-28T11:49:58Z</dc:date>
    </item>
  </channel>
</rss>

