<?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: linear regression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298263#M404964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens is that if I want to select a date of 2018, I do not calculate or maintain the forcasting, so I would like to know if it can be done in the load, so that I can see a specific day and keep the forcasting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jun 2017 16:30:09 GMT</pubDate>
    <dc:creator>carlos13</dc:creator>
    <dc:date>2017-06-02T16:30:09Z</dc:date>
    <item>
      <title>linear regression</title>
      <link>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298258#M404959</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;How can I calculate and apply a linear regression to see the balance of future dates?&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;From the data shown in the Excel I need to calculate with the methodology of linear regression of future dates, the real is from 02/28/2017 backwards and the future dates 01/03/2017 forward and the amounts are zero, I need to replace it with the projection, if you can help me I thank you.&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;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 15:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298258#M404959</guid>
      <dc:creator>carlos13</dc:creator>
      <dc:date>2017-06-01T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: linear regression</title>
      <link>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298259#M404960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos&lt;/P&gt;&lt;P&gt;see the attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 18:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298259#M404960</guid>
      <dc:creator>vhespinog</dc:creator>
      <dc:date>2017-06-01T18:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: linear regression</title>
      <link>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298260#M404961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you great idea,&lt;/P&gt;&lt;P&gt;Is there any way to apply this formula but in the script per day? In the load, not per month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 19:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298260#M404961</guid>
      <dc:creator>carlos13</dc:creator>
      <dc:date>2017-06-01T19:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: linear regression</title>
      <link>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298261#M404962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be like this, using a pivot table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 20:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298261#M404962</guid>
      <dc:creator>vhespinog</dc:creator>
      <dc:date>2017-06-01T20:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: linear regression</title>
      <link>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298262#M404963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any chance you can provide some screen shots or QVD? QlikView Personal refuses to open this document, and Sense only shows the load script. I'm interested in the command scripts / settings used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 15:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298262#M404963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-02T15:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: linear regression</title>
      <link>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298263#M404964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens is that if I want to select a date of 2018, I do not calculate or maintain the forcasting, so I would like to know if it can be done in the load, so that I can see a specific day and keep the forcasting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 16:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298263#M404964</guid>
      <dc:creator>carlos13</dc:creator>
      <dc:date>2017-06-02T16:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: linear regression</title>
      <link>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298264#M404965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure if it is possible because aggr is a chart function, if you find the solution, tell us &lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 17:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298264#M404965</guid>
      <dc:creator>vhespinog</dc:creator>
      <dc:date>2017-06-02T17:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: linear regression</title>
      <link>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298265#M404966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165686_1.JPG" style="height: 284px; width: 620px;" /&gt;&lt;IMG alt="2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/165687_2.JPG" style="height: 250px; width: 620px;" /&gt;&lt;IMG alt="3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/165688_3.JPG" style="height: 417px; width: 620px;" /&gt;&lt;IMG alt="4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/165689_4.JPG" style="height: 242px; width: 620px;" /&gt;&lt;IMG alt="5.JPG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/165690_5.JPG" style="height: 210px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 17:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298265#M404966</guid>
      <dc:creator>vhespinog</dc:creator>
      <dc:date>2017-06-02T17:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: linear regression</title>
      <link>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298266#M404967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use this as your expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; LINEST_M({&amp;lt;DATE&amp;gt;}TOTAL Aggr(If(Sum({&amp;lt;DATE&amp;gt;}MONT), Sum({&amp;lt;DATE&amp;gt;}MONT)), DATE),DATE)*DATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;+LINEST_B({&amp;lt;DATE&amp;gt;}TOTAL Aggr(If(Sum({&amp;lt;DATE&amp;gt;}MONT), Sum({&amp;lt;DATE&amp;gt;}MONT)),DATE),DATE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am ignoring selection in DATE field because Year filter is created using Date(Year) on the front end, but if you have Year field and you will make selections there, I would add or replace Year. Essentially, you would want to add all date and time related fields to your set analysis&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/165678_Capture.PNG" style="height: 734px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 17:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298266#M404967</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-02T17:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: linear regression</title>
      <link>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298267#M404968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doing it in script might look like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DATE, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(monthstart(DATE), 'MMM-YYYY') as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUENTA, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[DATA.xls]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD LINEST_M(Sum, DATE) as Slope,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; LINEST_B(Sum, DATE) as Intercept;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DATE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Sum(MONT), Sum(MONT)) as Sum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By DATE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (Slope*DATE) + Intercept as Forecast&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But is this something you need for each Name or is it across all the names? If it is different based on Name, then try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DATE, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(monthstart(DATE), 'MMM-YYYY') as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUENTA, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[DATA.xls]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD NAME,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; LINEST_M(Sum, DATE) as Slope,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; LINEST_B(Sum, DATE) as Intercept&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By NAME;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DATE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; NAME,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Sum(MONT), Sum(MONT)) as Sum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By DATE, NAME;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (Slope*DATE) + Intercept as Forecast&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 18:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linear-regression/m-p/1298267#M404968</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-02T18:11:37Z</dc:date>
    </item>
  </channel>
</rss>

