<?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 Matching linest_m and linest_b function to auto-generated trendline with manual calculation of linest m and linest b in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Matching-linest-m-and-linest-b-function-to-auto-generated/m-p/1154002#M376815</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 set of date with [Date] on the x-axis and [Score] on the y-axis.&amp;nbsp; When I plot the data as a bar chart and add a linear trendline I get the following auto-generated line equation:&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;y = -15.516x + 3105.1&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'd like to pull the slope (m) and y-intercept (b) out of that equation so I can use it in a straight table(Pivot).&amp;nbsp; Following the documentation and the many posts on this forum regarding this subject I added the following expressions to a straight table.&amp;nbsp; This straight table has a single dimension - [Date].&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;What comes out for each [Date] row is m = -2.21664050&amp;nbsp;&amp;nbsp; This is vastly different from the m&amp;nbsp; value given in the auto-generated linear trendline.&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;My question is why?&amp;nbsp; I created a dummy QV application to match the example shown in the QV11 "Nested Aggregations and Related Issues" online help (which can be accessed via a link in the online help for the Aggr() function) and I was able to get the trendline, .&amp;nbsp; Is there an issue with using dates as the x-axis for these regression calculations?&amp;nbsp; I assume that QV is somehow converting these dates into values - for the y=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;15.516x + 3105.1&lt;/SPAN&gt; equation.&amp;nbsp; I'm not sure what is being used for x when I try to use linest_m and linest_b, though.&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;Just wondering if anyone has run into this before or if there is any insight.&amp;nbsp; Please Go throgh the attached QVW for more details description..&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Think advance level&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2016 18:51:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-06T18:51:52Z</dc:date>
    <item>
      <title>Matching linest_m and linest_b function to auto-generated trendline with manual calculation of linest m and linest b</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-linest-m-and-linest-b-function-to-auto-generated/m-p/1154002#M376815</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 set of date with [Date] on the x-axis and [Score] on the y-axis.&amp;nbsp; When I plot the data as a bar chart and add a linear trendline I get the following auto-generated line equation:&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;y = -15.516x + 3105.1&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'd like to pull the slope (m) and y-intercept (b) out of that equation so I can use it in a straight table(Pivot).&amp;nbsp; Following the documentation and the many posts on this forum regarding this subject I added the following expressions to a straight table.&amp;nbsp; This straight table has a single dimension - [Date].&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;What comes out for each [Date] row is m = -2.21664050&amp;nbsp;&amp;nbsp; This is vastly different from the m&amp;nbsp; value given in the auto-generated linear trendline.&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;My question is why?&amp;nbsp; I created a dummy QV application to match the example shown in the QV11 "Nested Aggregations and Related Issues" online help (which can be accessed via a link in the online help for the Aggr() function) and I was able to get the trendline, .&amp;nbsp; Is there an issue with using dates as the x-axis for these regression calculations?&amp;nbsp; I assume that QV is somehow converting these dates into values - for the y=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;15.516x + 3105.1&lt;/SPAN&gt; equation.&amp;nbsp; I'm not sure what is being used for x when I try to use linest_m and linest_b, though.&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;Just wondering if anyone has run into this before or if there is any insight.&amp;nbsp; Please Go throgh the attached QVW for more details description..&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Think advance level&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-linest-m-and-linest-b-function-to-auto-generated/m-p/1154002#M376815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-06T18:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Matching linest_m and linest_b function to auto-generated trendline with manual calculation of linest m and linest b</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-linest-m-and-linest-b-function-to-auto-generated/m-p/1154003#M376816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't open QVW files currently, but I think your issue can be resolved using what I've shown in&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>Tue, 06 Sep 2016 19:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-linest-m-and-linest-b-function-to-auto-generated/m-p/1154003#M376816</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-06T19:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Matching linest_m and linest_b function to auto-generated trendline with manual calculation of linest m and linest b</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-linest-m-and-linest-b-function-to-auto-generated/m-p/1154004#M376817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;Good Day&lt;/P&gt;&lt;P&gt;yeah i tired that logic in my QVW file but i am not able to find exact solution(Linest m and Linest b values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in above link QVW files you mentioned manual calculation of Linest m function but i my Dashboard i am not able to find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in "Sample File.QVW" dashboard one ava% metric i am getting&amp;nbsp; time instead of numbers could please open the QVW file&amp;nbsp; and Please go through it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the bellow link is not match my exact requirement. but overall its give perfect idea how to calculate Linest m values.&lt;/P&gt;&lt;P&gt;Great&amp;nbsp; example &lt;SPAN style="font-size: 13.3333px;"&gt;Stefan and i am hearing your voice again now &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2052" data-containertype="14" data-objectid="34504" data-objecttype="1" href="https://community.qlik.com/thread/34504" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Matching linest_m and linest_b function to auto-generated trendline&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please Go through &lt;SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;"Sample File.QVW".&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;please update the logic according to my requirement.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if it is possible could you please mention linest m and linest b calculation manual in my &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;dashboard&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 05:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-linest-m-and-linest-b-function-to-auto-generated/m-p/1154004#M376817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-07T05:40:51Z</dc:date>
    </item>
  </channel>
</rss>

