<?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: Positive/negative result from trendline in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Positive-negative-result-from-trendline/m-p/441519#M489084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the linest_m function to calculate the slope of your linear regression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the HELP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor1104"&gt;&lt;/A&gt;&lt;A name="linest_m"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;linest_m (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[{set_expression}][ &lt;SPAN class="Bold"&gt;distinct&lt;/SPAN&gt; ] [&lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; [&amp;lt;fld {,fld}&amp;gt;] ]y-expression, x-expression[, y0 [, x0 ]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;returns the aggregated m value (slope) of a linear regression defined by the equation y=mx+b for a series of coordinates represented by paired numbers in &lt;SPAN class="Italic"&gt;x-expression&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;y-expression&lt;/SPAN&gt; iterated over the chart dimension(s). Text values, null values and missing values in any or both pieces of a data-pair will result in the entire data-pair to be disregarded. &lt;/P&gt;&lt;P&gt;An optional valye y&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; may be stated forcing the regression line to pass through the y-axis at a given point. By stating both y&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; and x&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; it is possible to force the regression line to pass through a single fixed coordinate. &lt;/P&gt;&lt;P&gt;Unless both y&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; and x&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; are stated, the function requires at least two valid data-pairs to calculate. If y&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; and x&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; are stated, a single data pair will do. &lt;/P&gt;&lt;P&gt;This function has the same limitations for nested aggregation as the &lt;A class="xref_1" href="#avg"&gt;&lt;EM&gt;avg([{set_expression}] [ distinct ] [ total [&amp;lt;fld { , fld } &amp;gt;]] expression)&lt;/EM&gt;&lt;/A&gt; function. The &lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt; function supports &lt;A _jive_internal="true" class="xref_1" href="https://community.qlik.com/thread/Set_Analysis.htm"&gt;&lt;EM&gt;Set Analysis&lt;/EM&gt;&lt;/A&gt; and the &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; qualifier in the same way as the &lt;A class="xref_1" href="#avg"&gt;&lt;EM&gt;avg([{set_expression}] [ distinct ] [ total [&amp;lt;fld { , fld } &amp;gt;]] expression)&lt;/EM&gt;&lt;/A&gt; function. &lt;/P&gt;&lt;P class="example"&gt;&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt;( Y, X )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt;( A/B, X*Y/3 )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt;( &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; Y, X )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt;( &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; &amp;lt;Z&amp;gt; Y, X)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt;( Y, X, 0 )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt;( Y, X, 1, 1 )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2012 11:15:54 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-12-17T11:15:54Z</dc:date>
    <item>
      <title>Positive/negative result from trendline</title>
      <link>https://community.qlik.com/t5/QlikView/Positive-negative-result-from-trendline/m-p/441517#M489082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a couple of charts with trendlines. Of course I can see whether the trendline is positive or negative by my eye, but I also want to visualize it as texts "Positive" / "Negative" depending of the trendline's direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My equations that has a positive trend has positive y values: y = 16109x + 9.3451e+005...&lt;/P&gt;&lt;P&gt;And my equations that has a negative trend has negative y values: y = -41282x + 1.5474+006...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that these equations are built-in QlikView calculations, which I activate through the diagram proporties. Does anybody know how to access the calculation of the trend's direction (y value) so that I can show it in a text object.&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,&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 09:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Positive-negative-result-from-trendline/m-p/441517#M489082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-17T09:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Positive/negative result from trendline</title>
      <link>https://community.qlik.com/t5/QlikView/Positive-negative-result-from-trendline/m-p/441518#M489083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;My problem is that these equations are built-in QlikView calculations, which I activate through the diagram proporties. Does anybody know how to access the calculation of the trend's direction (y value) so that I can show it in a text object.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, but I don't know what this means. Do you mean that the expression is set up somewhere other than in the chart properties ?&lt;/P&gt;&lt;P&gt;You could perhaps add another expression in a combo chart, test for increases or decreases in order to say something like 'Up' or 'Down', make sure each means of display (Bar, Line and Symbol) is deselected and then tick the 'Text on Axis' checkbox. &lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 11:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Positive-negative-result-from-trendline/m-p/441518#M489083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-17T11:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Positive/negative result from trendline</title>
      <link>https://community.qlik.com/t5/QlikView/Positive-negative-result-from-trendline/m-p/441519#M489084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the linest_m function to calculate the slope of your linear regression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the HELP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor1104"&gt;&lt;/A&gt;&lt;A name="linest_m"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;linest_m (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[{set_expression}][ &lt;SPAN class="Bold"&gt;distinct&lt;/SPAN&gt; ] [&lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; [&amp;lt;fld {,fld}&amp;gt;] ]y-expression, x-expression[, y0 [, x0 ]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;returns the aggregated m value (slope) of a linear regression defined by the equation y=mx+b for a series of coordinates represented by paired numbers in &lt;SPAN class="Italic"&gt;x-expression&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;y-expression&lt;/SPAN&gt; iterated over the chart dimension(s). Text values, null values and missing values in any or both pieces of a data-pair will result in the entire data-pair to be disregarded. &lt;/P&gt;&lt;P&gt;An optional valye y&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; may be stated forcing the regression line to pass through the y-axis at a given point. By stating both y&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; and x&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; it is possible to force the regression line to pass through a single fixed coordinate. &lt;/P&gt;&lt;P&gt;Unless both y&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; and x&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; are stated, the function requires at least two valid data-pairs to calculate. If y&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; and x&lt;SPAN class="Italic"&gt;0&lt;/SPAN&gt; are stated, a single data pair will do. &lt;/P&gt;&lt;P&gt;This function has the same limitations for nested aggregation as the &lt;A class="xref_1" href="#avg"&gt;&lt;EM&gt;avg([{set_expression}] [ distinct ] [ total [&amp;lt;fld { , fld } &amp;gt;]] expression)&lt;/EM&gt;&lt;/A&gt; function. The &lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt; function supports &lt;A _jive_internal="true" class="xref_1" href="https://community.qlik.com/thread/Set_Analysis.htm"&gt;&lt;EM&gt;Set Analysis&lt;/EM&gt;&lt;/A&gt; and the &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; qualifier in the same way as the &lt;A class="xref_1" href="#avg"&gt;&lt;EM&gt;avg([{set_expression}] [ distinct ] [ total [&amp;lt;fld { , fld } &amp;gt;]] expression)&lt;/EM&gt;&lt;/A&gt; function. &lt;/P&gt;&lt;P class="example"&gt;&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt;( Y, X )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt;( A/B, X*Y/3 )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt;( &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; Y, X )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt;( &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; &amp;lt;Z&amp;gt; Y, X)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt;( Y, X, 0 )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;linest_m&lt;/SPAN&gt;( Y, X, 1, 1 )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 11:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Positive-negative-result-from-trendline/m-p/441519#M489084</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-12-17T11:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Positive/negative result from trendline</title>
      <link>https://community.qlik.com/t5/QlikView/Positive-negative-result-from-trendline/m-p/441520#M489085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The linest_m function was exactly what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 10:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Positive-negative-result-from-trendline/m-p/441520#M489085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-20T10:06:44Z</dc:date>
    </item>
  </channel>
</rss>

