<?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: linest_m trendline correct value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457750#M564933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you would probably expect a positive value. But it's hard to say what's causing the difference just by looking at the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post a small sample app (or the data you are using as Excel or INLINE LOAD table)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Dec 2012 17:00:41 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-12-20T17:00:41Z</dc:date>
    <item>
      <title>linest_m trendline correct value?</title>
      <link>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457749#M564932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart (below) that shows Revenue over recent Weeks... In my chart I have added the trendline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27308" class="jive-image" alt="chart.JPG" src="https://community.qlik.com/legacyfs/online/27308_chart.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use the calculate the slope and found the linest_m function, my expression is like this: &lt;STRONG&gt;LINEST_M(Revenue, Week)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the result of my expression showed: -738,47539&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shouldn't the result be a positive value, as the trend is positive? What am I doing wrong?&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;Best regards,&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 16:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457749#M564932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-20T16:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: linest_m trendline correct value?</title>
      <link>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457750#M564933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you would probably expect a positive value. But it's hard to say what's causing the difference just by looking at the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post a small sample app (or the data you are using as Excel or INLINE LOAD table)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 17:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457750#M564933</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-12-20T17:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: linest_m trendline correct value?</title>
      <link>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457751#M564934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is other numbers, but still the value gets wrong when counting on a conditional trendline... Please see my attached example.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best,&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 11:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457751#M564934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-27T11:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: linest_m trendline correct value?</title>
      <link>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457752#M564935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Filip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value that linest_m returns seems correct to me (you can check this by calculating the slope with Excel, for example). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the equation that the linear regression option in chart properties will show is terribly wrong. It seems to me that QV is not taking the different x-step sizes correctly into account when calculating the lienar regression. In fact, if you change the axis to continuous in axes tab,the x-step sizes are shown correct, and the produced linear regression, too.&lt;/P&gt;&lt;P&gt;(Tested in QV 11.20.11643.0 IR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMO, you can and should report this as bug to QT support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 15:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457752#M564935</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-12-27T15:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: linest_m trendline correct value?</title>
      <link>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457753#M564936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I can agree that QV may not calculate properly when there are differences on the x axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look at my attached qv-document. I still can't understand if I am doing something wrong when fetching the Trend Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is visualize the trend with a text 'Positive'/'Negative'... But I can't find my simple calculations reliable as the value even gets negative with a clear positive trend in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 15:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457753#M564936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-10T15:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: linest_m trendline correct value?</title>
      <link>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457754#M564937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Filip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one big difference between your charts and the linest_m expression is the fact that you aggregate your revenue values in the line chart, but not in the linest_m function (and since your data shows multiple records per week, even for the same flag, that's a big difference).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can modify your linest_m function to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=LINEST_M(aggr(sum(Revenue), Week),aggr(Week,Week))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to produce the same result as your chart (considering the additional bug with non continuous x-axis values as discussed before).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 17:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457754#M564937</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-10T17:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: linest_m trendline correct value?</title>
      <link>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457755#M564938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I´ve just noticed similar behaviour here.&lt;/P&gt;&lt;P&gt;The "show equation" of feature trendline seems to be buggy&lt;/P&gt;&lt;P&gt;I´ve created a very, very example.&lt;/P&gt;&lt;P&gt;LINEST_M seems to be ok with the plotted equation&lt;/P&gt;&lt;P&gt;LINEST_B is totally different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve included an expression into the line graph with linest_m and linest_b and the lines are ok (my line and trendline) but the&amp;nbsp; "b" value for the equation is not ok&lt;/P&gt;&lt;P&gt;&lt;IMG alt="295107.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136599_295107.png" style="height: 222px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 19:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linest-m-trendline-correct-value/m-p/457755#M564938</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-09-06T19:59:53Z</dc:date>
    </item>
  </channel>
</rss>

