<?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: Linear regression Linest_M + Linest_B in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006341#M467787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Converting the dimension doesn't fixed the problem. &lt;IMG alt="" class="jive-image image-1" height="188" src="https://community.qlik.com/legacyfs/online/102463_pastedImage_0.png" style="width: 681px; height: 188.387px;" width="681" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Oct 2015 19:05:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-19T19:05:14Z</dc:date>
    <item>
      <title>Linear regression Linest_M + Linest_B</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006336#M467782</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;I want to forecast the amount of orders for the coming months. I've created a master calendar which adds dates for + 1 year after the max date in the data (so that I can forecast multiple months ahead).&lt;/P&gt;&lt;P&gt;However, the linest_m and linest_b aren't calculating the correct numbers.&lt;/P&gt;&lt;P&gt;To calculate the forecast I'm using the following functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(LINEST_M( TOTAL Aggr(Count([Werkorder partner]), [Maand melding]), [Maand melding]) * NUM([Maand melding]) )+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINEST_B(TOTAL Aggr(Count([Werkorder partner]), [Maand melding]), [Maand melding])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see the X is 72,30, when I calculate it manually however I get: 903 / 8 = 112,875 and B -111,875.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried forcing the graph to start in (0,0) with&lt;/P&gt;&lt;P&gt;(LINEST_M( TOTAL Aggr(Count([Werkorder partner]), [Maand melding]), [Maand melding],0,0)&lt;/P&gt;&lt;P&gt;but this returns x as 6945,5948???&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/102399_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" height="249" src="https://community.qlik.com/legacyfs/online/102398_pastedImage_0.png" style="width: 875px; height: 249.465px;" width="875" /&gt;&lt;/P&gt;&lt;P&gt;The correct formula (I think) should be: 112,875X - 111,875. Just have to get qlik to understand that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-3" height="251" src="https://community.qlik.com/legacyfs/online/102400_pastedImage_2.png" style="width: 904px; height: 250.599px;" width="904" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 09:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006336#M467782</guid>
      <dc:creator />
      <dc:date>2015-10-19T09:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression Linest_M + Linest_B</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006337#M467783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The chart doesn't start at 0. It starts at Jan. That's the first 'row' of the chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 10:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006337#M467783</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-19T10:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression Linest_M + Linest_B</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006338#M467784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/34504"&gt;Matching linest_m and linest_b function to auto-generated trendline&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 10:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006338#M467784</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-19T10:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression Linest_M + Linest_B</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006339#M467785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you suggest I should use linest_m( ....,..., 0,1)? I'll test it tonight.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 13:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006339#M467785</guid>
      <dc:creator />
      <dc:date>2015-10-19T13:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression Linest_M + Linest_B</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006340#M467786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if I understand the post, you suggest to rank the month dimension in the linest_ functions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 13:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006340#M467786</guid>
      <dc:creator />
      <dc:date>2015-10-19T13:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression Linest_M + Linest_B</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006341#M467787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Converting the dimension doesn't fixed the problem. &lt;IMG alt="" class="jive-image image-1" height="188" src="https://community.qlik.com/legacyfs/online/102463_pastedImage_0.png" style="width: 681px; height: 188.387px;" width="681" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 19:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006341#M467787</guid>
      <dc:creator />
      <dc:date>2015-10-19T19:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression Linest_M + Linest_B</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006342#M467788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you upload a small sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 19:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006342#M467788</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-19T19:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression Linest_M + Linest_B</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006343#M467789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay got the linear regression correct, as in equal to the one qlikview calculates. But I still think the regression should be &lt;STRONG&gt;112,875X - 111,875 &lt;/STRONG&gt;not &lt;STRONG&gt;72,30x + 150,44&lt;/STRONG&gt; as qlikview calculates. I think this has to do with the fact that a count of the orders in january returns null, as well as okt nov dec.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 19:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-regression-Linest-M-Linest-B/m-p/1006343#M467789</guid>
      <dc:creator />
      <dc:date>2015-10-19T19:32:43Z</dc:date>
    </item>
  </channel>
</rss>

