<?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: Average and rolling in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273510#M400293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Perhaps try something like:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;rangeavg(after(sum(Sales),0,12))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Pravesh Dukhi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2017 10:03:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-19T10:03:05Z</dc:date>
    <item>
      <title>Average and Average rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273509#M400292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you inadvance for the help with the following, I have tried to find answers to my questions here and &lt;SPAN class="alt-edited"&gt;on the web&lt;/SPAN&gt; but have not succeeded with everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create charts/tables in QlikView (version 11) with the following and I need the formulas for &lt;SPAN class="alt-edited"&gt;those&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- "Three-year average for the previous 12 months rolling": ie the average of &lt;SPAN class="alt-edited"&gt;the past three&lt;/SPAN&gt; rolling 12 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tex 201201 should be = &lt;STRONG&gt;(0&lt;/STRONG&gt;(200901) +&lt;STRONG&gt;355&lt;/STRONG&gt;(201001) +&lt;STRONG&gt;264&lt;/STRONG&gt;(201101)&lt;STRONG&gt;) / 3&lt;/STRONG&gt;, see the attached Excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- "The average of the last three years": &lt;SPAN class="alt-edited"&gt;ie&lt;/SPAN&gt; the average number of persons per month for the last three years. e.g. &lt;STRONG&gt;201202&lt;/STRONG&gt; should be = &lt;STRONG&gt;(15&lt;/STRONG&gt;(200902) +&lt;STRONG&gt;8&lt;/STRONG&gt;(201002) +&lt;STRONG&gt;25&lt;/STRONG&gt; (201102)&lt;STRONG&gt;) / 3&lt;/STRONG&gt;, see the attached Excel file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 17:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273509#M400292</guid>
      <dc:creator />
      <dc:date>2017-01-18T17:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Average and rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273510#M400293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Perhaps try something like:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;rangeavg(after(sum(Sales),0,12))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Pravesh Dukhi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 10:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273510#M400293</guid>
      <dc:creator />
      <dc:date>2017-01-19T10:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Average and rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273511#M400294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, but I don't need after().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 10:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273511#M400294</guid>
      <dc:creator />
      <dc:date>2017-01-19T10:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Average and rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273512#M400295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will check this out today &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 11:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273512#M400295</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-20T11:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Average and rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273513#M400296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;could you help me with this?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2017 18:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273513#M400296</guid>
      <dc:creator />
      <dc:date>2017-01-22T18:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Average and rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273514#M400297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data you have provided seems to be an extract from QlikView's chart which seems to be already pre-aggregated. To help you best, I would request you to provide the non-aggregated data so that we can see what all you have. It would be best if you are able to share your qvw. If confidentiality is a concern, you can check this out&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2017 18:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273514#M400297</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-22T18:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Average and Average rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273515#M400298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny, Now you have two files as attachments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2017 20:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273515#M400298</guid>
      <dc:creator />
      <dc:date>2017-01-22T20:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Average and Average rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273516#M400299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check if the attached looks right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression used&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Above(Count(DISTINCT{&amp;lt;PeriodType={'Rolling 12'}&amp;gt;}IDPerson), 12) + Above(Count(DISTINCT{&amp;lt;PeriodType={'Rolling 12'}&amp;gt;}IDPerson), 24))/2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Above(count(DISTINCT IDPerson), 12) + Above(count(DISTINCT IDPerson), 24))/2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150404_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 01:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273516#M400299</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-23T01:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Average and Average rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273517#M400300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works very well and I want to thank you very much for this.&lt;/P&gt;&lt;P&gt;An completed question: How can I get the calculations in those 5 expressions in the script instead of getting them already calculated during the upload of the data? What will be the changes that I have to do in the equations to make them work in the scripts?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 21:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273517#M400300</guid>
      <dc:creator />
      <dc:date>2017-01-23T21:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Average and Average rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273518#M400301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I am confused, you want this in the script or do you want them in the front end?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 21:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273518#M400301</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-23T21:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Average and Average rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273519#M400302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I confused you!&lt;/P&gt;&lt;P&gt;It is too heavy for the chart and it takes a long time to be updated after each selection so I thought that maybe it's better to have them calculated already in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 22:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273519#M400302</guid>
      <dc:creator />
      <dc:date>2017-01-23T22:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Average and Average rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273520#M400303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Sunny if I confused you.&lt;/P&gt;&lt;P&gt;But could you help me with the script equations?&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 20:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273520#M400303</guid>
      <dc:creator />
      <dc:date>2017-01-24T20:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Average and Average rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273521#M400304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try to work on this over the weekend.... Probably won't get time to see this before that because of the complexity involved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 02:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273521#M400304</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-25T02:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Average and Average rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273522#M400305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, hope I'm not interrupting. I wonder if you've had time to look at my question?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 17:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273522#M400305</guid>
      <dc:creator />
      <dc:date>2017-02-01T17:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Average and Average rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273523#M400306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I totally forgot about this.... checking it again (will have to remind myself what we were doing here) &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 02:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273523#M400306</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-02T02:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Average and Average rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273524#M400307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Added two new Concatenations to the AsOfPeriodTable table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;CONCATENATE (AsOfPeriodTable)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Period as AsOfPeriod,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; '&lt;SPAN style="color: #000080;"&gt;PREV 1 Rolling 12&lt;/SPAN&gt;' as PeriodType,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; date(&lt;SPAN style="color: #ff0000;"&gt;AddYears(&lt;/SPAN&gt;addmonths(Period,1-iterno())&lt;SPAN style="color: #ff0000;"&gt;, -1)&lt;/SPAN&gt;,'YYYYMM') as Period1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Year(Period) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Month(Period) as Month &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT PeriodTbl&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHILE iterno() &amp;lt;= 12;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CONCATENATE (AsOfPeriodTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Period as AsOfPeriod,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; '&lt;SPAN style="color: #000080;"&gt;PREV 2 Rolling 12&lt;/SPAN&gt;' as PeriodType,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; date(&lt;SPAN style="color: #ff0000;"&gt;AddYears(&lt;/SPAN&gt;addmonths(Period,1-iterno())&lt;SPAN style="color: #ff0000;"&gt;, -2)&lt;/SPAN&gt;,'YYYYMM') as Period1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Year(Period) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Month(Period) as Month &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT PeriodTbl&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHILE iterno() &amp;lt;= 12;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then the &lt;STRONG&gt;Three-year average for the previous 12 months rolling &lt;/STRONG&gt;expression will be this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Count(DISTINCT{&amp;lt;PeriodType={'&lt;STRONG style=": ; color: #000080; font-size: 13.3333px;"&gt;PREV 1 Rolling 12&lt;/STRONG&gt;'}&amp;gt;}IDPerson) + Count(DISTINCT{&amp;lt;PeriodType={'&lt;STRONG style=": ; color: #000080; font-size: 13.3333px;"&gt;PREV 2 Rolling 12&lt;/STRONG&gt;'}&amp;gt;}IDPerson))/2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this expression slow too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Above(count(DISTINCT IDPerson), 12) + Above(count(DISTINCT IDPerson), 24))/2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This seems to be more dynamic and might be kept as is unless you really want to push this to backend also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 03:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-and-Average-rolling/m-p/1273524#M400307</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-02T03:07:37Z</dc:date>
    </item>
  </channel>
</rss>

