<?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 Moving Average multiple dimensions in a Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Moving-Average-multiple-dimensions-in-a-Chart/m-p/434304#M565438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small problem. &lt;/P&gt;&lt;P&gt;In my example I have two products (A and B). They get a score every year. Now I want to calculate the moving average (4 years) score for each product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following expression in a Pivot table:&lt;/P&gt;&lt;P&gt;RANGEavg(before(AVG(Score),0,4))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works perfect!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to get the same results in a Chart. But it doesnt seem to work. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All help is welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2013 10:33:09 GMT</pubDate>
    <dc:creator>beunderf</dc:creator>
    <dc:date>2013-01-18T10:33:09Z</dc:date>
    <item>
      <title>Moving Average multiple dimensions in a Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-Average-multiple-dimensions-in-a-Chart/m-p/434304#M565438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small problem. &lt;/P&gt;&lt;P&gt;In my example I have two products (A and B). They get a score every year. Now I want to calculate the moving average (4 years) score for each product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following expression in a Pivot table:&lt;/P&gt;&lt;P&gt;RANGEavg(before(AVG(Score),0,4))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works perfect!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to get the same results in a Chart. But it doesnt seem to work. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All help is welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 10:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-Average-multiple-dimensions-in-a-Chart/m-p/434304#M565438</guid>
      <dc:creator>beunderf</dc:creator>
      <dc:date>2013-01-18T10:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Average multiple dimensions in a Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-Average-multiple-dimensions-in-a-Chart/m-p/434305#M565439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please...anyone??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2013 13:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-Average-multiple-dimensions-in-a-Chart/m-p/434305#M565439</guid>
      <dc:creator>beunderf</dc:creator>
      <dc:date>2013-01-20T13:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Average multiple dimensions in a Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-Average-multiple-dimensions-in-a-Chart/m-p/434306#M565440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having the same problem. Did you already found any solution? The ABOVE won't work with the selection of the last year. It is in QV10 possible with showing only the last 4 values. It seems they removed it QV11. Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 12:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-Average-multiple-dimensions-in-a-Chart/m-p/434306#M565440</guid>
      <dc:creator />
      <dc:date>2013-03-27T12:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Average multiple dimensions in a Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-Average-multiple-dimensions-in-a-Chart/m-p/434307#M565441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the Above won't work if you want to show only tha last year. Please look at my example. In the example of Frank it will work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 12:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-Average-multiple-dimensions-in-a-Chart/m-p/434307#M565441</guid>
      <dc:creator />
      <dc:date>2013-03-27T12:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Average multiple dimensions in a Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-Average-multiple-dimensions-in-a-Chart/m-p/434308#M565442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A possible solution by set analyis is, with use of variabels voor current month (CM), last year (LY) and current year (TY):&lt;/P&gt;&lt;P&gt;=if(D.Month&amp;lt;=CM, &lt;/P&gt;&lt;P&gt;(RangeAvg(Bottom(SUM({&amp;lt;sub={A},D.Year={$(=LY)}D.Month= &amp;gt;} Sales)*((12-RowNo())/12))&lt;/P&gt;&lt;P&gt;+(RangeAvg(top(SUM({&amp;lt;sub={A},D.Year={$(=TY)},D.Month= &amp;gt;} Sales)*(RowNo()/12)) &lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;D.Month is the dimension (months in this case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will calculate the moving average of the expression 'SUM({&amp;lt;sub={A},Dim.Jaar={$(=LY)},Dim.Maand= &amp;gt;} Sales)' for the past 12 months. It does so by selecting the months before the current month, including the current month itself, of TY and selecting the months after the current month of LY. To get the correct values, the range average of the expression is calculated for both periods and a weighted average is calculated of the two outputs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has however the disadvantages that (1) to make it insensitive for date selections, these fields have to added to the set analysis (in the example above, done voor Dim.Maand). (2) it does not work if a part of the data is nonexistent, all the months used have to be filled with data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 11:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-Average-multiple-dimensions-in-a-Chart/m-p/434308#M565442</guid>
      <dc:creator />
      <dc:date>2013-04-15T11:25:09Z</dc:date>
    </item>
  </channel>
</rss>

