<?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: Before() with Aggr() - Doesn't Work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Before-with-Aggr-Doesn-t-Work/m-p/628888#M230942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange! my pivot's Month is&amp;nbsp; dragged to column and hence before() is the one which should work there. But yes Above() works. Do you have any logical explanation for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2014 09:24:39 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-05-27T09:24:39Z</dc:date>
    <item>
      <title>Before() with Aggr() - Doesn't Work</title>
      <link>https://community.qlik.com/t5/QlikView/Before-with-Aggr-Doesn-t-Work/m-p/628886#M230940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had been working on a case in response to this :&lt;A href="https://community.qlik.com/message/535949"&gt;Re: Re: Re: Re: Including unselected data in before-function&lt;/A&gt; . And that lead me to use expression like: = &lt;EM&gt;Sum(Aggr(&lt;/EM&gt;&lt;STRONG style="color: #ff0000;"&gt;Before&lt;/STRONG&gt;&lt;EM&gt;(Sum({&amp;lt;Month&amp;gt;}Amount)),Month))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;// in a pivot with Month as dimension&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and this expression fails while it's counter-part with above() works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = Sum(Aggr(&lt;STRONG style=": ; color: #339966;"&gt;Above&lt;/STRONG&gt;(Sum({&amp;lt;Month&amp;gt;}Amount)),Month))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // in a straight table with Month as dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Info: QV 11 SR5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing somethin? Or, is it a Bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 09:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-with-Aggr-Doesn-t-Work/m-p/628886#M230940</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-27T09:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Before() with Aggr() - Doesn't Work</title>
      <link>https://community.qlik.com/t5/QlikView/Before-with-Aggr-Doesn-t-Work/m-p/628887#M230941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(&lt;STRONG style="color: #339966;"&gt;Above&lt;/STRONG&gt;(Sum({&amp;lt;Month&amp;gt;}Amount)),Month))&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pivot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 09:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-with-Aggr-Doesn-t-Work/m-p/628887#M230941</guid>
      <dc:creator />
      <dc:date>2014-05-27T09:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Before() with Aggr() - Doesn't Work</title>
      <link>https://community.qlik.com/t5/QlikView/Before-with-Aggr-Doesn-t-Work/m-p/628888#M230942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange! my pivot's Month is&amp;nbsp; dragged to column and hence before() is the one which should work there. But yes Above() works. Do you have any logical explanation for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 09:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-with-Aggr-Doesn-t-Work/m-p/628888#M230942</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-27T09:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Before() with Aggr() - Doesn't Work</title>
      <link>https://community.qlik.com/t5/QlikView/Before-with-Aggr-Doesn-t-Work/m-p/628889#M230943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think, that in fact we are no in pivot but in virtual table created by aggr() ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 09:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-with-Aggr-Doesn-t-Work/m-p/628889#M230943</guid>
      <dc:creator />
      <dc:date>2014-05-27T09:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Before() with Aggr() - Doesn't Work</title>
      <link>https://community.qlik.com/t5/QlikView/Before-with-Aggr-Doesn-t-Work/m-p/628890#M230944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Makes sense. But then qlik has to say that before() would not work with aggr().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 09:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-with-Aggr-Doesn-t-Work/m-p/628890#M230944</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-27T09:33:21Z</dc:date>
    </item>
  </channel>
</rss>

