<?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: The Function for Linest_M in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/The-Function-for-Linest-M/m-p/934627#M467948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the HELP for the linest_m function limitations when using nested aggregation.&lt;/P&gt;&lt;P&gt;I think you need to use advanced aggregation (the aggr() function ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To better understand your setting, please post a small sample QVW and your expected outcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2015 08:05:27 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-10-08T08:05:27Z</dc:date>
    <item>
      <title>The Function for Linest_M</title>
      <link>https://community.qlik.com/t5/QlikView/The-Function-for-Linest-M/m-p/934626#M467947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to display multiple trend lines on a straight table and Chart through the use of the linest_M function.&amp;nbsp; Currently, the correct slope calculation appears only after I have selected Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below is the straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;2015 Act&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;2015 Plan&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Gap&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Linest_M&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jan&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Feb&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;210&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Mar&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;270&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-30&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how do I display all linest_M values for each selected "Month" at the same time??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trend lines is between Gap -- Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gap = 2015 Act - 2015 Plan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=LINEST_M( RangeSum(Above(TOTAL Sum({$&amp;lt;PGroup={"Parts"}, PType={"Raw"} &amp;gt;} NettoVK1 ), 0, RowNo(TOTAL)))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Num(sum({$&amp;lt;PLGroup={"Parts"}, PLType={"Raw"} &amp;gt;} PAmount )*1000, '#.##'),Month)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 07:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-Function-for-Linest-M/m-p/934626#M467947</guid>
      <dc:creator />
      <dc:date>2015-10-08T07:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: The Function for Linest_M</title>
      <link>https://community.qlik.com/t5/QlikView/The-Function-for-Linest-M/m-p/934627#M467948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the HELP for the linest_m function limitations when using nested aggregation.&lt;/P&gt;&lt;P&gt;I think you need to use advanced aggregation (the aggr() function ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To better understand your setting, please post a small sample QVW and your expected outcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 08:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-Function-for-Linest-M/m-p/934627#M467948</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-08T08:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: The Function for Linest_M</title>
      <link>https://community.qlik.com/t5/QlikView/The-Function-for-Linest-M/m-p/934628#M467949</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;I checked the Help and updated the expression below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINEST_M(aggr(RangeSum(Above(TOTAL Sum({$&amp;lt;PGroup={"Parts"}, PType={"Raw"} &amp;gt;} NettoVK1 )-Num(sum({$&amp;lt;PLGroup={"Parts"}, PLType={"Raw"} &amp;gt;} PAmount )*1000, '#.##'), 0, RowNo(TOTAL))),Month),(aggr(rankMonth),Month)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 08:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-Function-for-Linest-M/m-p/934628#M467949</guid>
      <dc:creator />
      <dc:date>2015-10-08T08:21:11Z</dc:date>
    </item>
  </channel>
</rss>

