<?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: 6 month rolling forecast in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/6-month-rolling-forecast/m-p/1273776#M400348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot John !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2016 17:05:45 GMT</pubDate>
    <dc:creator>guillaume_gorli</dc:creator>
    <dc:date>2016-12-06T17:05:45Z</dc:date>
    <item>
      <title>6 month rolling forecast</title>
      <link>https://community.qlik.com/t5/QlikView/6-month-rolling-forecast/m-p/1273774#M400346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the issue i am facing :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a database showing for each month a sales forecast :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145566_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The idea is to show a 6 month forecast based on the period selected &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, if December 2016 is selected, the outpout should be the data for the 6 following period (from January to June 2017) as seen below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/145567_Capture.JPG" style="height: 303px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;If February 2017 is selected, then the output should be the data from March to August 2017 as seen below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/145568_Capture.JPG" style="height: 295px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For those who want to help, let me attached the Excel test database as well as the .qvw file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 23:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/6-month-rolling-forecast/m-p/1273774#M400346</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2016-12-02T23:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: 6 month rolling forecast</title>
      <link>https://community.qlik.com/t5/QlikView/6-month-rolling-forecast/m-p/1273775#M400347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum({&amp;lt;Année_Mois={"&amp;gt;$(=max(Année_Mois))&amp;lt;$(=addmonths(max(Année_Mois),6))"},[$(=concat({&amp;lt;$Table={'Calendrier'},$Field-={'Année_Mois'}&amp;gt;} $Field,'],['))]&amp;gt;} [Forecast Sales Zone 1])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The concat() part of the expression is perhaps overkill, but it lets you add or remove Calendrier fields without having to modify the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you might consider using an AsOf table connecting each month to the 6 future months. Much simpler expression. But there can then be confusion about which field is being selected, and if the wrong one is selected, strange results can happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;AsOf_Mois, Année_Mois&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Feb 2017, Mar 2017&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Feb 2017, Apr 2017&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Feb 2017, Aug 2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dimension&amp;nbsp; = AsOf_Mois&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Expression = sum([Forecast Sales Zone 1])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2016 00:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/6-month-rolling-forecast/m-p/1273775#M400347</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-12-03T00:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: 6 month rolling forecast</title>
      <link>https://community.qlik.com/t5/QlikView/6-month-rolling-forecast/m-p/1273776#M400348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot John !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 17:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/6-month-rolling-forecast/m-p/1273776#M400348</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2016-12-06T17:05:45Z</dc:date>
    </item>
  </channel>
</rss>

