<?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: Trendline slope in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846703#M297225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Zelman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is possible and it's very simple. You can use the function called "Linest_m". Linest_m returns the slope of a linear regression defined by the equation y = mx + b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, you can have an expression in your table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LINEST_M(aggr(nodistinct sum(Sales), Month, Product), Month)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;If Linest_M &amp;gt; 0 then you have a positive trend, and if it's &amp;lt; 0 you have a negative trend .If it's 0, then the slope is undefined meaning&amp;nbsp; that all data points (x, y) are equal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to modify the aggr() function depending on what dimensions you want to aggregate your values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching an example.&lt;/P&gt;&lt;P&gt;JV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2015 10:17:07 GMT</pubDate>
    <dc:creator>jvitantonio</dc:creator>
    <dc:date>2015-05-13T10:17:07Z</dc:date>
    <item>
      <title>Trendline slope</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846697#M297219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Is there any possibility of having in the table slope of a trendline?&lt;/P&gt;&lt;P&gt;I've got amount of sales in time and i'd like to have % value of the trendline in a table so i could tell if sales are increasing or decreasing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 04:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846697#M297219</guid>
      <dc:creator />
      <dc:date>2015-05-13T04:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline slope</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846698#M297220</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;it is better if you could tell the specific requirement with an example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and there are some trendline option available in your chart property&amp;gt;expression&amp;gt;Trendline (lower left corner).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 04:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846698#M297220</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2015-05-13T04:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline slope</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846699#M297221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, some kind of example for better idea of what i want.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86378_Capture.PNG" style="height: 155px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I've got this chart and i want blue line of trend to be in table.&lt;/P&gt;&lt;P&gt;Maybe % of slope, maybe there's some method to get value of starting and ending point so i could see if it's going up or down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 04:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846699#M297221</guid>
      <dc:creator />
      <dc:date>2015-05-13T04:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline slope</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846700#M297222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zelman15,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u want something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86374_Capture.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 05:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846700#M297222</guid>
      <dc:creator>prasadcm</dc:creator>
      <dc:date>2015-05-13T05:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline slope</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846701#M297223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already tried doing something like this and it's not what i'm looking for.&lt;/P&gt;&lt;P&gt;I have to tell if trending line is ascending or descending.&lt;/P&gt;&lt;P&gt;If there was possibility of putting trending line into this chart, it would be good enought for me, but i haven't found this option anywhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 06:23:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846701#M297223</guid>
      <dc:creator />
      <dc:date>2015-05-13T06:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline slope</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846702#M297224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think can't be done what You want.&lt;/P&gt;&lt;P&gt;However, You can use ColorMix1() in background color of expression&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ColorMix1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86403_ColorMix1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;You can use wizard of ColorMix1()&lt;/P&gt;&lt;P&gt;or in background color You can use expression like If(Expr &amp;gt; Average,Green(),Red())&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 08:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846702#M297224</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-05-13T08:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline slope</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846703#M297225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Zelman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is possible and it's very simple. You can use the function called "Linest_m". Linest_m returns the slope of a linear regression defined by the equation y = mx + b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, you can have an expression in your table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LINEST_M(aggr(nodistinct sum(Sales), Month, Product), Month)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;If Linest_M &amp;gt; 0 then you have a positive trend, and if it's &amp;lt; 0 you have a negative trend .If it's 0, then the slope is undefined meaning&amp;nbsp; that all data points (x, y) are equal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to modify the aggr() function depending on what dimensions you want to aggregate your values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching an example.&lt;/P&gt;&lt;P&gt;JV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 10:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-slope/m-p/846703#M297225</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2015-05-13T10:17:07Z</dc:date>
    </item>
  </channel>
</rss>

