<?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 Forecast to month end in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Forecast-to-month-end/m-p/224486#M76887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;Forecast * (day(monthend("Month_Yr"))/(day(today())))&lt;/P&gt;&lt;P&gt;48 *(30/20) = 72&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2011 16:36:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-20T16:36:19Z</dc:date>
    <item>
      <title>Forecast to month end</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-to-month-end/m-p/224485#M76886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hope someone can help me with some advice.&lt;/P&gt;&lt;P&gt;I have data collected each day and using this I would like to know what the forecast is likely to be at the end of the month. So at the moment I have a figure of 48 I know if I divide this out by day using the 20 days of april so far I get 2.4 per day and then * 30 days in month and would expect to have a figure around 72 at the end of the month. But I am not sure how to show this in either a table or a chart so it alters each day.&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 16:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-to-month-end/m-p/224485#M76886</guid>
      <dc:creator />
      <dc:date>2011-04-20T16:24:53Z</dc:date>
    </item>
    <item>
      <title>Forecast to month end</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-to-month-end/m-p/224486#M76887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;Forecast * (day(monthend("Month_Yr"))/(day(today())))&lt;/P&gt;&lt;P&gt;48 *(30/20) = 72&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 16:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-to-month-end/m-p/224486#M76887</guid>
      <dc:creator />
      <dc:date>2011-04-20T16:36:19Z</dc:date>
    </item>
    <item>
      <title>Forecast to month end</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-to-month-end/m-p/224487#M76888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It depends on the analysis and the chart you want to use (even if you want to get it done at script level), but the expression would be something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;(Sum(Amount) / Day(Today())) * Day(MonthEnd(Today()))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thus you get first the amount per day, then per month (multiplied by the number of days in the month).&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 16:39:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-to-month-end/m-p/224487#M76888</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-20T16:39:07Z</dc:date>
    </item>
    <item>
      <title>Forecast to month end</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-to-month-end/m-p/224488#M76889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you Miguel that works perfectly for the current month. Could I ask you one more question about this.&lt;/P&gt;&lt;P&gt;When the month is incomplete this works perfectly but I would like it to be dinamic to the month the user selects. So if the month is incomplete I use the formula you gave me but if it is complete then use the full data. I just can't think how to get this to work with the calendar.&lt;/P&gt;&lt;P&gt;Thanks again for your help&lt;/P&gt;&lt;P&gt;Incomplete Month Formula:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;(&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Performance_Category={'RED8'}&amp;gt;} IF(FirstA8MinRespTimeDuration&amp;gt;1800,1))&lt;B&gt;)&lt;/B&gt; / Day(Today()) * Day(MonthEnd(Today&lt;/P&gt;&lt;P&gt;()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Complete Month Formula:-&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Performance_Category={'RED8'}&amp;gt;} IF(FirstA8MinRespTimeDuration&amp;gt;1800,1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 09:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-to-month-end/m-p/224488#M76889</guid>
      <dc:creator />
      <dc:date>2011-04-21T09:58:50Z</dc:date>
    </item>
    <item>
      <title>Forecast to month end</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-to-month-end/m-p/224489#M76890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You will need to use a conditional to see whether the selected month is complete or is not. Say you already know in your script when is your last date and you store that information into a variable. The expression should look like a combination of the two you mention above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt; Performance_Category = {'RED8'}, FirstA8MinRespTimeDuration = {'&amp;gt;1800'} &amp;gt;} If(Max(Date) = $(vVariableWithMaxDate)), 1 / Day(Today()) * Day(MonthEnd(Today())), 1)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Depending on the chart you are using, I'd do two different expressions that will show only in one of both cases (current month not finished or complete month).&lt;/P&gt;&lt;P&gt;If your chart manages a huge amount of records, the performance will degrade.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 18:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-to-month-end/m-p/224489#M76890</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-22T18:27:58Z</dc:date>
    </item>
  </channel>
</rss>

