<?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 Forecast data using Linest functions syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Forecast-data-using-Linest-functions-syntax/m-p/1140417#M896737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have scenario,i need to show forecast data.&lt;/P&gt;&lt;P&gt;I am using linest_m and Linest_b functions and able to generate the forecasting piece&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(Year&amp;lt;=2016,AVG(SalesGrowthRate),(linest_m(total aggr(if(avg(SalesGrowthRate)+$(Sales Annual Growth Rate),avg(SalesGrowthRate)+$(Sales Annual Growth Rate)),Year),Year)*Year &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;+linest_b(total aggr(if(avg(SalesGrowthRate)+$(Sales Annual Growth Rate),avg(SalesGrowthRate)+$(Sales Annual Growth Rate)),Year),Year)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But my scenario is the forecasting data is &lt;/P&gt;&lt;P&gt;after 2016 i want show&amp;nbsp; &lt;STRONG style="color: #ff9900; font-size: 13.3333px;"&gt;SalesGrowthRate&lt;/STRONG&gt;&lt;SPAN style="color: #ff9900;"&gt;=&lt;STRONG style="font-size: 13.3333px;"&gt;SalesGrowthRate+(&lt;STRONG style="font-size: 13.3333px;"&gt;SalesGrowthRate*($(&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;Sales Annual Growth Rate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff9900; font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;))&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body send the syntax using lineest_m and linest_b for getting the above logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached excel and qvw for reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Thiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Forecast data using Linest functions syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Forecast-data-using-Linest-functions-syntax/m-p/1140417#M896737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have scenario,i need to show forecast data.&lt;/P&gt;&lt;P&gt;I am using linest_m and Linest_b functions and able to generate the forecasting piece&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(Year&amp;lt;=2016,AVG(SalesGrowthRate),(linest_m(total aggr(if(avg(SalesGrowthRate)+$(Sales Annual Growth Rate),avg(SalesGrowthRate)+$(Sales Annual Growth Rate)),Year),Year)*Year &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;+linest_b(total aggr(if(avg(SalesGrowthRate)+$(Sales Annual Growth Rate),avg(SalesGrowthRate)+$(Sales Annual Growth Rate)),Year),Year)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But my scenario is the forecasting data is &lt;/P&gt;&lt;P&gt;after 2016 i want show&amp;nbsp; &lt;STRONG style="color: #ff9900; font-size: 13.3333px;"&gt;SalesGrowthRate&lt;/STRONG&gt;&lt;SPAN style="color: #ff9900;"&gt;=&lt;STRONG style="font-size: 13.3333px;"&gt;SalesGrowthRate+(&lt;STRONG style="font-size: 13.3333px;"&gt;SalesGrowthRate*($(&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;Sales Annual Growth Rate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff9900; font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;))&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body send the syntax using lineest_m and linest_b for getting the above logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached excel and qvw for reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Thiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forecast-data-using-Linest-functions-syntax/m-p/1140417#M896737</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

