<?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 Forecasting with zero-values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Forecasting-with-zero-values/m-p/1039839#M350060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a question regarding a forecast I want to make in Qlikview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I want to forecast the price of the upcoming months based on the costs of the previous months and based on some forecast weight parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG alt="QlikExample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118841_QlikExample.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The expression I used:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(Sum( aggr( rangesum( above(Costs,0,12) ),Month)) - Costs) / (Sum( aggr( rangesum( above(ForecastFactor,0,12) ),Month)) - ForecastFactor) * ForecastFactor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The problem starts in month 8. If the value is € 0,00, the costs for that month are still not known. So, for month 8 I do not want to take the costs of month 7 into account, as the costs are still €0,00. However, with my expression it goes wrong: the forecast of month 8 is based on the costs of month 1 to 7 divided by the forecastfactor s of those months, instead of being based on the costs and forecastfactors of month 1 to 6. In fact I expect for the months 8, 9, 10 and 11 a forecast of € 1,75 as the forecastfactor is 8 and the forecast is based on the real costs of month 1 to 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Moreover, I prefer to solve this problem using the expressions and/or other chart properties. Anyone knows how I can base the forecast costs of month 8 on the output of month 1 to 6 instead of 1 to 7?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2016 16:46:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-21T16:46:36Z</dc:date>
    <item>
      <title>Forecasting with zero-values</title>
      <link>https://community.qlik.com/t5/QlikView/Forecasting-with-zero-values/m-p/1039839#M350060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a question regarding a forecast I want to make in Qlikview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I want to forecast the price of the upcoming months based on the costs of the previous months and based on some forecast weight parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG alt="QlikExample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118841_QlikExample.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The expression I used:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(Sum( aggr( rangesum( above(Costs,0,12) ),Month)) - Costs) / (Sum( aggr( rangesum( above(ForecastFactor,0,12) ),Month)) - ForecastFactor) * ForecastFactor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The problem starts in month 8. If the value is € 0,00, the costs for that month are still not known. So, for month 8 I do not want to take the costs of month 7 into account, as the costs are still €0,00. However, with my expression it goes wrong: the forecast of month 8 is based on the costs of month 1 to 7 divided by the forecastfactor s of those months, instead of being based on the costs and forecastfactors of month 1 to 6. In fact I expect for the months 8, 9, 10 and 11 a forecast of € 1,75 as the forecastfactor is 8 and the forecast is based on the real costs of month 1 to 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Moreover, I prefer to solve this problem using the expressions and/or other chart properties. Anyone knows how I can base the forecast costs of month 8 on the output of month 1 to 6 instead of 1 to 7?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 16:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecasting-with-zero-values/m-p/1039839#M350060</guid>
      <dc:creator />
      <dc:date>2016-03-21T16:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with zero-values</title>
      <link>https://community.qlik.com/t5/QlikView/Forecasting-with-zero-values/m-p/1039840#M350061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(Sum( aggr( rangesum( above(Costs,0,12) ),Month)) - Costs) / (Sum( aggr( rangesum( above(&lt;STRONG&gt;Only({&amp;lt;Costs = {"&amp;gt;0"}&amp;gt;}ForecastFactor)&lt;/STRONG&gt;,0,12) ),Month)) - ForecastFactor) * ForecastFactor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Maybe add the Only() with set expression also to your other ForecastFactor references.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 17:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecasting-with-zero-values/m-p/1039840#M350061</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-21T17:51:35Z</dc:date>
    </item>
  </channel>
</rss>

