<?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 linest_m and aggr function issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/linest-m-and-aggr-function-issue/m-p/167395#M503678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same way, the following function (much simpler than linest_m) doesn't work in a chart by dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;avg(total aggr(sum(MU),[Y-M])/aggr(sum(DETAILS),[Y-M]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 May 2010 14:49:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-28T14:49:38Z</dc:date>
    <item>
      <title>linest_m and aggr function issue</title>
      <link>https://community.qlik.com/t5/QlikView/linest-m-and-aggr-function-issue/m-p/167394#M503677</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 a problem when i want to estimate the relationship between two variables with a linear relationship.&lt;/P&gt;&lt;P&gt;I have two fields: MU and DETAILS and I wish to obtain a linear regression between the two by month (aggregation variable called MY).&lt;/P&gt;&lt;P&gt;The first method I tried didn't work because I used the simple expression &lt;B&gt;linest_m(MU,DETAILS)&lt;/B&gt; which didn't accomplish the MY aggregation part resulting in wrong values. I could however obtain a chart "sliced" by dimension and organize a top ten.&lt;/P&gt;&lt;P&gt;Nevertheless, I got the formula working when i finally tried:&lt;/P&gt;&lt;P&gt;&lt;B&gt;linest_m(aggr(sum(MU),MY),aggr(sum(DETAILS),MY))&lt;/B&gt; or &lt;B&gt;&lt;/B&gt;&lt;B&gt;linest_m(total aggr(sum(MU),MY),aggr(sum(DETAILS),MY))&lt;/B&gt;&lt;/P&gt;&lt;P&gt;The values are correct with the latter formula, but somehow it's now impossible to "slice" these values by dimension in a chart (for instance, using Age Interval). It only shows the global value and to obtain each of the individual values, several selections have to be made in a list box.&lt;/P&gt;&lt;P&gt;It's acceptable but not quite good for a visual side by side analysis in a chart.&lt;/P&gt;&lt;P&gt;Is there any way to obtain a linear regression by month variable and then use in a chart/table (to get a top ten linest_m results)?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 15:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linest-m-and-aggr-function-issue/m-p/167394#M503677</guid>
      <dc:creator />
      <dc:date>2010-05-27T15:07:33Z</dc:date>
    </item>
    <item>
      <title>linest_m and aggr function issue</title>
      <link>https://community.qlik.com/t5/QlikView/linest-m-and-aggr-function-issue/m-p/167395#M503678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same way, the following function (much simpler than linest_m) doesn't work in a chart by dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;avg(total aggr(sum(MU),[Y-M])/aggr(sum(DETAILS),[Y-M]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 14:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linest-m-and-aggr-function-issue/m-p/167395#M503678</guid>
      <dc:creator />
      <dc:date>2010-05-28T14:49:38Z</dc:date>
    </item>
  </channel>
</rss>

