<?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: Forecast Based on trend in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221748#M390570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(-LINEST_B({$&amp;lt;Date=&amp;gt;}TOTAL &lt;SPAN style="color: #ff0000;"&gt;&amp;lt;Station&amp;gt;&lt;/SPAN&gt; If(TrendDate=Date, Aggr(Sum({$&amp;lt;Date=&amp;gt;}[In Use]), Date,Station), Null()),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; TrendDate)/LINEST_M({$&amp;lt;Date=&amp;gt;}TOTAL &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;lt;Station&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt; If(TrendDate=Date, Aggr(Sum({$&amp;lt;Date=&amp;gt;}[In Use]), Date,Station), Null()), TrendDate),'DD/MM/YYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="152235" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152235_Capture.PNG" style="height: 120px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2017 02:51:13 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-02-07T02:51:13Z</dc:date>
    <item>
      <title>Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221740#M390562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help with this dummy scenario. Based on the usage below and the totals I am trying to forecast the date by which the total will be hit.&lt;/P&gt;&lt;P&gt;any help is appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;I have attached the qvw file&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-1206663-152109/pastedImage_0.png"&gt;&lt;IMG class="jive-image image-1" height="501" src="https://community.qlik.com/legacyfs/online/152109_pastedImage_0.png" width="427" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 16:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221740#M390562</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-06T16:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221741#M390563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share what the expected output is and how you reach the expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221741#M390563</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-06T17:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221742#M390564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Synny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am try to achieve something like.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152188_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the runt out date is forecsted based on the in use growth overtime and the total for that station.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221742#M390564</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-06T17:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221743#M390565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand the logic behind 15/07/2019? Can you share an Excel file with the logic?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221743#M390565</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-06T17:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221744#M390566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Sunny, I didn't write any logic to return that date I just showing the sample output.&lt;/P&gt;&lt;P&gt;But what I am trying to achieve is based on a linear growth return the date the In use will Hit 10 which is the current Total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current total can be different for other stations Thought. But I am happy to consider the max(Total) if that will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221744#M390566</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-06T17:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221745#M390567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I have managed to put something in qlik to get the date the total limit will be hit.&lt;/P&gt;&lt;P&gt;my problem is that as shown on the table in the document the Date in far in the past.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is something wrong with my expression?&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152231_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 01:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221745#M390567</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-07T01:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221746#M390568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(-LINEST_B({$&amp;lt;Date=&amp;gt;}TOTAL If(TrendDate=Date, Aggr(Sum({$&amp;lt;Date=&amp;gt;}[In Use]), Date), Null()), TrendDate)/LINEST_M({$&amp;lt;Date=&amp;gt;}TOTAL If(TrendDate=Date, Aggr(Sum({$&amp;lt;Date=&amp;gt;}[In Use]), Date), Null()), TrendDate),'DD/MM/YYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152221_Capture.PNG" style="height: 54px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 02:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221746#M390568</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-07T02:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221747#M390569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I applied and it is setting the same date for all the stations (close to 500 in the original app) when I don't have any station selected. but when I select a station then it returns the right date for that station? I have added 1 more station to the mix as shown below .&lt;/P&gt;&lt;P&gt;the app is also attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152233_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/152237_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 02:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221747#M390569</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-07T02:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221748#M390570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(-LINEST_B({$&amp;lt;Date=&amp;gt;}TOTAL &lt;SPAN style="color: #ff0000;"&gt;&amp;lt;Station&amp;gt;&lt;/SPAN&gt; If(TrendDate=Date, Aggr(Sum({$&amp;lt;Date=&amp;gt;}[In Use]), Date,Station), Null()),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; TrendDate)/LINEST_M({$&amp;lt;Date=&amp;gt;}TOTAL &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;lt;Station&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt; If(TrendDate=Date, Aggr(Sum({$&amp;lt;Date=&amp;gt;}[In Use]), Date,Station), Null()), TrendDate),'DD/MM/YYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="152235" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152235_Capture.PNG" style="height: 120px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 02:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221748#M390570</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-07T02:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221749#M390571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. it worked like magic &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; now I need to spend time and understand you expression.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 02:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221749#M390571</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-07T02:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221750#M390572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not that difficult... what I used is this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y = mx + b.... since you wanted to estimate the x intercept, I put y = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 = mx + b =&amp;gt; mx = -b =&amp;gt; x = -b/m =&amp;gt; &lt;STRONG&gt;-LinestB/LinestM&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 03:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221750#M390572</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-07T03:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221751#M390573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The hard part was already done by you when you created the forecast expression. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 03:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221751#M390573</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-07T03:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Based on trend</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221752#M390574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 03:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-Based-on-trend/m-p/1221752#M390574</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-07T03:04:35Z</dc:date>
    </item>
  </channel>
</rss>

