<?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: Excluding ranges from linest_m() + linest_b() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280668#M26682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;linest_m({&amp;lt;MonthOfService = {"$(='&amp;lt;=' &amp;amp; Date(AddMonths(Max(MonthOfService), -3), 'YYYY-MM'))"}&amp;gt;}total aggr(if(sum(PaidAmount),sum(PaidAmount)),DateOfService),DateOfService)*MonthOfService //only({1}MonthOfService)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;linest_b({&amp;lt;MonthOfService = {"$(='&amp;lt;=' &amp;amp; Date(AddMonths(Max(MonthOfService), -3), 'YYYY-MM'))"}&amp;gt;}total aggr(if(sum(PaidAmount),sum(PaidAmount)),DateOfService),DateOfService)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/156394_Capture.PNG" style="height: 288px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2017 16:19:00 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-15T16:19:00Z</dc:date>
    <item>
      <title>Excluding ranges from linest_m() + linest_b()</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280663#M26677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Liner Trend expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;linest_m(total aggr(if(sum(PaidAmount),sum(PaidAmount)),DateOfService),DateOfService)*MonthOfService&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;linest_b(total aggr(if(sum(PaidAmount),sum(PaidAmount)),DateOfService),DateOfService)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I need to exclude the last three months &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;from the linear trend only.&lt;/STRONG&gt; How can this be done ? I've tried set analysis after the aggr function, but may be doing something wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached example: 2017-01,&lt;SPAN style="font-size: 13.3333px;"&gt;2017-02, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2017-03.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 16:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280663#M26677</guid>
      <dc:creator>marcoyukon</dc:creator>
      <dc:date>2017-03-13T16:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding ranges from linest_m() + linest_b()</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280664#M26678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to test this out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 17:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280664#M26678</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-13T17:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding ranges from linest_m() + linest_b()</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280665#M26679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I've attached it to the post. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 13:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280665#M26679</guid>
      <dc:creator>marcoyukon</dc:creator>
      <dc:date>2017-03-14T13:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding ranges from linest_m() + linest_b()</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280666#M26680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hi Sunny, were you able to test it out with the attachment I sent ? Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280666#M26680</guid>
      <dc:creator>marcoyukon</dc:creator>
      <dc:date>2017-03-15T16:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding ranges from linest_m() + linest_b()</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280667#M26681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I forgot... checking now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280667#M26681</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T16:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding ranges from linest_m() + linest_b()</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280668#M26682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;linest_m({&amp;lt;MonthOfService = {"$(='&amp;lt;=' &amp;amp; Date(AddMonths(Max(MonthOfService), -3), 'YYYY-MM'))"}&amp;gt;}total aggr(if(sum(PaidAmount),sum(PaidAmount)),DateOfService),DateOfService)*MonthOfService //only({1}MonthOfService)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;linest_b({&amp;lt;MonthOfService = {"$(='&amp;lt;=' &amp;amp; Date(AddMonths(Max(MonthOfService), -3), 'YYYY-MM'))"}&amp;gt;}total aggr(if(sum(PaidAmount),sum(PaidAmount)),DateOfService),DateOfService)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/156394_Capture.PNG" style="height: 288px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280668#M26682</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T16:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding ranges from linest_m() + linest_b()</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280669#M26683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to apply the set to the aggregation rather than using it on the linest functions. It makes sense now.&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-ranges-from-linest-m-linest-b/m-p/1280669#M26683</guid>
      <dc:creator>marcoyukon</dc:creator>
      <dc:date>2017-03-15T16:26:21Z</dc:date>
    </item>
  </channel>
</rss>

