<?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: linest_m() and aggr() problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/linest-m-and-aggr-problem/m-p/393859#M485294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I modified my question as above, and this is the exact context of my problem. .. If you have any idea, thx so much for your response!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 08:09:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-25T08:09:27Z</dc:date>
    <item>
      <title>linest_m() and aggr() problem</title>
      <link>https://community.qlik.com/t5/QlikView/linest-m-and-aggr-problem/m-p/393857#M485292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;I have problem with my calculate linest_m. I present my conditions as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;a. I have the following fonction: y = y(t),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where t is the x axe, and y(t)= count(TYPE)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;b. I want to calculate the cumulate result Y = ∑y(t)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;b. The regression line is defined between t1 and t2 ,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: red; font-size: 10pt;"&gt;where&amp;nbsp; t1 and t2 are two variables.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;c. I need to calculate the linest_m and linest_b of the regression line,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: red; font-size: 10pt;"&gt;where t should be between t1 and t2. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Anyhow, the result should be always defined by a subset of (t1,t2).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;THANKS for you response!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Actually, I think the problem is how to do a cumulate calculation in an aggr() function, correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 09:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linest-m-and-aggr-problem/m-p/393857#M485292</guid>
      <dc:creator />
      <dc:date>2013-04-24T09:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: linest_m() and aggr() problem</title>
      <link>https://community.qlik.com/t5/QlikView/linest-m-and-aggr-problem/m-p/393858#M485293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why it's not working but this line is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;count({&amp;lt;DT_hhmm_05={"&amp;gt;=$(vDtMin)"}*{"&amp;lt;=$(vDtMax)"},TYPE=SEL_01&amp;gt;}TYPE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;it should be something like is SEL_01 a field or a value? if it's a filed it should be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;count({&amp;lt;DT_hhmm_05={"&amp;gt;=$(vDtMin)"}*{"&amp;lt;=$(vDtMax)"},TYPE=P(SEL_01)&amp;gt;}TYPE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Also, you're filtering values with an IF statement but also using set analysis. &lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;I also don't believe rowno or above will work with the AGGR function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;You should try building a sample application so people here might be able to help you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 17:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linest-m-and-aggr-problem/m-p/393858#M485293</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2013-04-24T17:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: linest_m() and aggr() problem</title>
      <link>https://community.qlik.com/t5/QlikView/linest-m-and-aggr-problem/m-p/393859#M485294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I modified my question as above, and this is the exact context of my problem. .. If you have any idea, thx so much for your response!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 08:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linest-m-and-aggr-problem/m-p/393859#M485294</guid>
      <dc:creator />
      <dc:date>2013-04-25T08:09:27Z</dc:date>
    </item>
  </channel>
</rss>

