<?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: forecasting: three years avarage in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/forecasting-three-years-avarage/m-p/510036#M190576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you consider &lt;STRONG&gt;Sales&lt;/STRONG&gt; as field which contains the data for each year then &lt;/P&gt;&lt;P&gt;please try the below code in the Script and play around to make it more feasible one .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Year , Sales ,&amp;nbsp; ( Peek('Sales' , -1) ,&amp;nbsp; Peek('Sales' , -2 )&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp; Peek('Sales',-3)&amp;nbsp;&amp;nbsp; )&amp;nbsp; / 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Average&lt;/P&gt;&lt;P&gt;Resident Fact_TableName ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yusuf Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 11:32:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-26T11:32:44Z</dc:date>
    <item>
      <title>forecasting: three years avarage</title>
      <link>https://community.qlik.com/t5/QlikView/forecasting-three-years-avarage/m-p/510035#M190575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where I need to show forecast for the next three years from the last actual data point. For example I have data till 2012. I need to show data for 2013 as average of (2010+2011+2012)/3, then 2014 as (2011+2012+2013)/3 where 2013 was a forecasted value. Similarly for 2015 as (2012+2013+2014)/3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data till 2012 only. Can someone please tell me how to generate the forcasted data in chart for this. If I have to do this in load script, I dont have any issue with that either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 08:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/forecasting-three-years-avarage/m-p/510035#M190575</guid>
      <dc:creator />
      <dc:date>2013-06-26T08:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: forecasting: three years avarage</title>
      <link>https://community.qlik.com/t5/QlikView/forecasting-three-years-avarage/m-p/510036#M190576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you consider &lt;STRONG&gt;Sales&lt;/STRONG&gt; as field which contains the data for each year then &lt;/P&gt;&lt;P&gt;please try the below code in the Script and play around to make it more feasible one .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Year , Sales ,&amp;nbsp; ( Peek('Sales' , -1) ,&amp;nbsp; Peek('Sales' , -2 )&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp; Peek('Sales',-3)&amp;nbsp;&amp;nbsp; )&amp;nbsp; / 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Average&lt;/P&gt;&lt;P&gt;Resident Fact_TableName ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yusuf Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 11:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/forecasting-three-years-avarage/m-p/510036#M190576</guid>
      <dc:creator />
      <dc:date>2013-06-26T11:32:44Z</dc:date>
    </item>
  </channel>
</rss>

