<?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: Rolling average - partly Cummulative- in a chart. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-average-partly-Cummulative-in-a-chart/m-p/333674#M573801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not understand what you want, could you post an example of the table with some expected values, please?&lt;/P&gt;&lt;P&gt;The moving average can be obtained with the function and RangeAvg and Above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. if you have the formula &lt;EM&gt;sum(Field), &lt;/EM&gt;the moving average of previous 4 period can be calculated with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeAvg(Above(&lt;EM&gt;sum(Field)&lt;/EM&gt;,1,3), &lt;EM&gt;sum(Field)&lt;/EM&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2012 14:11:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-05T14:11:02Z</dc:date>
    <item>
      <title>Rolling average - partly Cummulative- in a chart.</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-average-partly-Cummulative-in-a-chart/m-p/333672#M573799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I'm having trouble creating a chart which has a rolling average in it.&lt;/P&gt;&lt;P&gt;The graph only shows the selected year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a monthnumber ( rowno() ) assigned to my datetable. This field is MonthNumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula:&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({ Year=, Quarter=, Month=, MonthNumber={"&amp;gt;= $(=Max(MonthNumber)-11) &amp;lt;= $(=Max(MonthNumber)-0)"}&amp;gt;} Amount)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({ Year=, Quarter=, Month=, MonthNumber={"&amp;gt;= $(=Max(MonthNumber)-0)"}&amp;gt;} OtherAmount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;Now, I got this formula to work to diplay the current month only in a table without a dimension.&lt;/P&gt;&lt;P&gt;But not rolling in a graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The working formula to only show this month is:&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;// LEDGER LAST 12 MONTHS&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Year=, Quarter=, Month=, MonthNumber={"&amp;gt;= $(=Max(MonthNumber)-11) &amp;lt;= $(=Max(MonthNumber))"}&amp;gt;} GL_Amount_Credit-GL_Amount_Debit)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;// Capital Employed&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt; sum( {&amp;lt; Year=, Quarter=, Month=, MonthNumber= {$(#=Max(MonthNumber)-0)} &amp;gt;} GL_Amount_Debit-GL_Amount_Credit)&lt;/P&gt;&lt;P&gt;+sum( {&amp;lt;Year=, Quarter=, Month=, MonthNumber= {$(#=Max(MonthNumber)-0)} &amp;gt;} Begsal_Debet-Begsal_Credit) &lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone provide me with the correct formula for the graph?&lt;/P&gt;&lt;P&gt;Asuming a dimension YearMonth (201001, 201002).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 11:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-average-partly-Cummulative-in-a-chart/m-p/333672#M573799</guid>
      <dc:creator />
      <dc:date>2012-07-04T11:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling average - partly Cummulative- in a chart.</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-average-partly-Cummulative-in-a-chart/m-p/333673#M573800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone have an idea yet for my problem above ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 13:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-average-partly-Cummulative-in-a-chart/m-p/333673#M573800</guid>
      <dc:creator />
      <dc:date>2012-07-05T13:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling average - partly Cummulative- in a chart.</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-average-partly-Cummulative-in-a-chart/m-p/333674#M573801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not understand what you want, could you post an example of the table with some expected values, please?&lt;/P&gt;&lt;P&gt;The moving average can be obtained with the function and RangeAvg and Above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. if you have the formula &lt;EM&gt;sum(Field), &lt;/EM&gt;the moving average of previous 4 period can be calculated with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeAvg(Above(&lt;EM&gt;sum(Field)&lt;/EM&gt;,1,3), &lt;EM&gt;sum(Field)&lt;/EM&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 14:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-average-partly-Cummulative-in-a-chart/m-p/333674#M573801</guid>
      <dc:creator />
      <dc:date>2012-07-05T14:11:02Z</dc:date>
    </item>
  </channel>
</rss>

