<?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 12 M Average - Chart Problem in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rolling-12-M-Average-Chart-Problem/m-p/1546760#M39360</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;First of all let me say, that I am well ware of how many times this question has been asked, but it is always slightly different for different developers.&lt;/P&gt;&lt;P&gt;I would like only last 12 Periods to be visible in my Line Chart, however want the expression to be calculated the same way it is.&lt;/P&gt;&lt;P&gt;As an example in the image below Mar-18 to Feb-19 and their respective 12 M Rolling Avg is what I want to be visible in the chart, however for the expression for Mar-18 to work properly it needs to look back as far as Mar-17 (which I don't want to show in the Chart)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6391iC3EE9DB109F84A50/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Currently my expression looks like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeAvg(Above( Avg( {&amp;lt;[Code Group] = {'Sale'}, [grpcode Group] = {'3rd Party'}&amp;gt;} [Sales] ), 0, 12)) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And my Dimension is &lt;STRONG&gt;Period&lt;/STRONG&gt;, which is basically &lt;STRONG&gt;MonthName(DateField)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;So my question is, can we limit the visibility to just last 12 Periods and keeping the first visible period calculation intact ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image(1).png" style="width: 922px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6392i8A8F431649B01101/image-size/large?v=v2&amp;amp;px=999" role="button" title="image(1).png" alt="image(1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank You in Advnace,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:32:41 GMT</pubDate>
    <dc:creator>basildur</dc:creator>
    <dc:date>2024-11-16T06:32:41Z</dc:date>
    <item>
      <title>Rolling 12 M Average - Chart Problem</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-M-Average-Chart-Problem/m-p/1546760#M39360</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;First of all let me say, that I am well ware of how many times this question has been asked, but it is always slightly different for different developers.&lt;/P&gt;&lt;P&gt;I would like only last 12 Periods to be visible in my Line Chart, however want the expression to be calculated the same way it is.&lt;/P&gt;&lt;P&gt;As an example in the image below Mar-18 to Feb-19 and their respective 12 M Rolling Avg is what I want to be visible in the chart, however for the expression for Mar-18 to work properly it needs to look back as far as Mar-17 (which I don't want to show in the Chart)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6391iC3EE9DB109F84A50/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Currently my expression looks like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeAvg(Above( Avg( {&amp;lt;[Code Group] = {'Sale'}, [grpcode Group] = {'3rd Party'}&amp;gt;} [Sales] ), 0, 12)) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And my Dimension is &lt;STRONG&gt;Period&lt;/STRONG&gt;, which is basically &lt;STRONG&gt;MonthName(DateField)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;So my question is, can we limit the visibility to just last 12 Periods and keeping the first visible period calculation intact ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image(1).png" style="width: 922px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6392i8A8F431649B01101/image-size/large?v=v2&amp;amp;px=999" role="button" title="image(1).png" alt="image(1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank You in Advnace,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-M-Average-Chart-Problem/m-p/1546760#M39360</guid>
      <dc:creator>basildur</dc:creator>
      <dc:date>2024-11-16T06:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 M Average - Chart Problem</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-M-Average-Chart-Problem/m-p/1547002#M39377</link>
      <description>&lt;P&gt;You may want to consider making some dummy data and putting it into an Excel file to attach to this question.&amp;nbsp; I don't mind fiddling around with Set Analysis to help someone get the answer they need, but if I have to create dummy data myself, it may not fully represent the system you are trying to solve.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 15:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-M-Average-Chart-Problem/m-p/1547002#M39377</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2019-02-20T15:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 M Average - Chart Problem</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-M-Average-Chart-Problem/m-p/1547826#M39447</link>
      <description>Did something similar to this before with reference line&lt;BR /&gt;Dimension&lt;BR /&gt;=Aggr(Only({&amp;lt;Month,Date={"&amp;gt;=$(=addmonths(today(1),-12))&amp;lt;=$(=today(1))"}&amp;gt;}Month-Year),Month-Year)&lt;BR /&gt;&lt;BR /&gt;Add-ons under Properties panel -&amp;gt; under Reference lines you can try adding you average count there.&lt;BR /&gt;RangeAvg(Above( Avg( {&amp;lt;[Code Group] = {'Sale'}, [grpcode Group] = {'3rd Party'}&amp;gt;} [Sales] ), 0, 12)) * Avg(1)</description>
      <pubDate>Fri, 22 Feb 2019 06:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-M-Average-Chart-Problem/m-p/1547826#M39447</guid>
      <dc:creator>Keitaru</dc:creator>
      <dc:date>2019-02-22T06:44:11Z</dc:date>
    </item>
  </channel>
</rss>

