<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linear-Trendline/m-p/1581189#M740000</link>
    <description>&lt;P&gt;I found a solution. If someone else has this problem you can model your expression after this one. This will give you the same result as the trendline equation in a chart for a 90th percentile trend.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;Slope&lt;/FONT&gt;&lt;BR /&gt;=(count(DISTINCT [Year])*Sum(DISTINCT TOTAL [Year]*Aggr(Fractile([My Value],0.9),[Year]))-(Sum(DISTINCT TOTAL [Year])*Sum(DISTINCT TOTAL Aggr(Fractile([My Value],0.9),[Year]))))/(count(DISTINCT [Year])*Sum(DISTINCT TOTAL Pow([Year],2))-Pow(Sum(DISTINCT TOTAL [Year]),2))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Y-Intercept&lt;/FONT&gt;&lt;BR /&gt;=Avg(DISTINCT TOTAL Aggr(Fractile([My Value],0.9),[Year]))-&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;vSlope&lt;/STRONG&gt;&lt;/FONT&gt;*Avg(DISTINCT TOTAL [Year])&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 15:27:23 GMT</pubDate>
    <dc:creator>rothk8675309</dc:creator>
    <dc:date>2019-05-16T15:27:23Z</dc:date>
    <item>
      <title>Linear Trendline</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-Trendline/m-p/1580686#M739999</link>
      <description>&lt;P&gt;I am trying make projections using the data I have for future years using the LINEST_M and LINEST_B functions. The problem is that they aren't working with the Fractile() function. I read that aggregation functions need to use the TOTAL qualifier, but when I use it it doesn't give me the correct answer. Is there a way around this issue?&lt;/P&gt;&lt;P&gt;Expression is close to y=m*x+b where b is =LINEST_B(Fractile(TOTAL [My Value],0.9),[Year]) and m is&amp;nbsp;LINEST_M(Fractile(TOTAL [My Value],0.9),[Year])&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I check the linear trendline equation on a line chart b should be close to -3.9 and m should be close to 0.002&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-Trendline/m-p/1580686#M739999</guid>
      <dc:creator>rothk8675309</dc:creator>
      <dc:date>2024-11-16T20:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-Trendline/m-p/1581189#M740000</link>
      <description>&lt;P&gt;I found a solution. If someone else has this problem you can model your expression after this one. This will give you the same result as the trendline equation in a chart for a 90th percentile trend.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;Slope&lt;/FONT&gt;&lt;BR /&gt;=(count(DISTINCT [Year])*Sum(DISTINCT TOTAL [Year]*Aggr(Fractile([My Value],0.9),[Year]))-(Sum(DISTINCT TOTAL [Year])*Sum(DISTINCT TOTAL Aggr(Fractile([My Value],0.9),[Year]))))/(count(DISTINCT [Year])*Sum(DISTINCT TOTAL Pow([Year],2))-Pow(Sum(DISTINCT TOTAL [Year]),2))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Y-Intercept&lt;/FONT&gt;&lt;BR /&gt;=Avg(DISTINCT TOTAL Aggr(Fractile([My Value],0.9),[Year]))-&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;vSlope&lt;/STRONG&gt;&lt;/FONT&gt;*Avg(DISTINCT TOTAL [Year])&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 15:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-Trendline/m-p/1581189#M740000</guid>
      <dc:creator>rothk8675309</dc:creator>
      <dc:date>2019-05-16T15:27:23Z</dc:date>
    </item>
  </channel>
</rss>

