<?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 Rolling averages question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-averages-question/m-p/739308#M676191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am interested in creating a chart that contains 3 month rolling averages for my data. What I am trying to do for each data point is calculate an average of the current dimension value and the 2 dimension values previous - and plot it as one data point for the current dimension value. (And repeat this for every dimension value.) The dimension that I am using is called MonthsSinceOrig. I am currently working with set analysis and I cant seem to figure out how to get the values for the previous 2 dimension values. Shown below is what I have so far. I've included (in red) pseudo code into the set analysis so that you will be able to see what I am trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Loan Type]={'1'}, [Note Year] = {2008}&amp;gt;} Balance) / sum({$&amp;lt;Stage=, [Loan Type]={'1'}, [Note Year] = {2008}&amp;gt;} Balance)&lt;/P&gt;&lt;P&gt;+ sum({$&amp;lt;[Loan Type]={1'}, [Note Year] = {2008}, &lt;SPAN style="color: #ff0000;"&gt;MonthsSinceOrig = current dimension value -1&lt;/SPAN&gt;&amp;gt;} Balance) / sum({$&amp;lt;Stage=, [Loan Type]={'1'}, [Note Year] = {2008, &lt;SPAN style="color: #ff0000;"&gt;MonthsSinceOrig = current dimension value -1&lt;/SPAN&gt;}&amp;gt;} Balance)&lt;/P&gt;&lt;P&gt;+ sum({$&amp;lt;[Loan Type]={1'}, [Note Year] = {2008}, &lt;SPAN style="color: #ff0000;"&gt;MonthsSinceOrig = current dimension value -2&lt;/SPAN&gt;&amp;gt;} Balance) / sum({$&amp;lt;Stage=, [Loan Type]={'1'}, [Note Year] = {2008}, &lt;SPAN style="color: #ff0000;"&gt;MonthsSinceOrig = current dimension value -2&lt;SPAN style="color: #000000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;} Balance))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a feeling that this is not possible, but I figured that I would ask anyway. If it is not, does anybody know of another way to accomplish this? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2014 15:35:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-09T15:35:13Z</dc:date>
    <item>
      <title>Rolling averages question</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-averages-question/m-p/739308#M676191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am interested in creating a chart that contains 3 month rolling averages for my data. What I am trying to do for each data point is calculate an average of the current dimension value and the 2 dimension values previous - and plot it as one data point for the current dimension value. (And repeat this for every dimension value.) The dimension that I am using is called MonthsSinceOrig. I am currently working with set analysis and I cant seem to figure out how to get the values for the previous 2 dimension values. Shown below is what I have so far. I've included (in red) pseudo code into the set analysis so that you will be able to see what I am trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Loan Type]={'1'}, [Note Year] = {2008}&amp;gt;} Balance) / sum({$&amp;lt;Stage=, [Loan Type]={'1'}, [Note Year] = {2008}&amp;gt;} Balance)&lt;/P&gt;&lt;P&gt;+ sum({$&amp;lt;[Loan Type]={1'}, [Note Year] = {2008}, &lt;SPAN style="color: #ff0000;"&gt;MonthsSinceOrig = current dimension value -1&lt;/SPAN&gt;&amp;gt;} Balance) / sum({$&amp;lt;Stage=, [Loan Type]={'1'}, [Note Year] = {2008, &lt;SPAN style="color: #ff0000;"&gt;MonthsSinceOrig = current dimension value -1&lt;/SPAN&gt;}&amp;gt;} Balance)&lt;/P&gt;&lt;P&gt;+ sum({$&amp;lt;[Loan Type]={1'}, [Note Year] = {2008}, &lt;SPAN style="color: #ff0000;"&gt;MonthsSinceOrig = current dimension value -2&lt;/SPAN&gt;&amp;gt;} Balance) / sum({$&amp;lt;Stage=, [Loan Type]={'1'}, [Note Year] = {2008}, &lt;SPAN style="color: #ff0000;"&gt;MonthsSinceOrig = current dimension value -2&lt;SPAN style="color: #000000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;} Balance))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a feeling that this is not possible, but I figured that I would ask anyway. If it is not, does anybody know of another way to accomplish this? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 15:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-averages-question/m-p/739308#M676191</guid>
      <dc:creator />
      <dc:date>2014-07-09T15:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling averages question</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-averages-question/m-p/739309#M676192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis calculates one set per chart, not a set per dimension value. That means you can't use set analysis to do what you want. See this document for more information: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 15:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-averages-question/m-p/739309#M676192</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-09T15:40:05Z</dc:date>
    </item>
  </channel>
</rss>

