<?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 Whats wrong with this simple AGGR()? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272879#M102142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Does it work if you select only one Calendar.YearMonth? &lt;/P&gt;&lt;P&gt;Does it work without Aggr ?&amp;nbsp; (sum(vLastFctPayment.Amount)-(sum(Expenses.Expenses)-sum(vLastFctPayment.ServicingFee)) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Aug 2011 13:41:07 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-08-15T13:41:07Z</dc:date>
    <item>
      <title>Whats wrong with this simple AGGR()?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272877#M102140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can some one please help me and explain whats wrong with the AGGR statement below. I tried working around this statement changing the functions, but its no use. I have total values at month level and unable to get the running totals using the AGGR(). I just have 4 months data. Its really annoying me for sometime now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(sum(vLastFctPayment.Amount)-(sum(Expenses.Expenses)-sum(vLastFctPayment.ServicingFee)),Calendar.YearMonth))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have above expression within a variable called $(vCashToMonth) and I even tried aggr($(vCashToMonth), Calendar.YearMonth) still doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton in Advance,&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 13:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272877#M102140</guid>
      <dc:creator />
      <dc:date>2011-08-15T13:13:27Z</dc:date>
    </item>
    <item>
      <title>Whats wrong with this simple AGGR()?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272878#M102141</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;are you using variables within your aggr? (Just thinking because of the 'v' at the beginning of field Names)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, what do they look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, the expression look good to me, could you post a small sample app here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 13:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272878#M102141</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-15T13:25:52Z</dc:date>
    </item>
    <item>
      <title>Whats wrong with this simple AGGR()?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272879#M102142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Does it work if you select only one Calendar.YearMonth? &lt;/P&gt;&lt;P&gt;Does it work without Aggr ?&amp;nbsp; (sum(vLastFctPayment.Amount)-(sum(Expenses.Expenses)-sum(vLastFctPayment.ServicingFee)) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 13:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272879#M102142</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-08-15T13:41:07Z</dc:date>
    </item>
    <item>
      <title>Whats wrong with this simple AGGR()?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272880#M102143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes it works for one Calendar.YearMonth and even the expression works normally if I dont add AGGR. But when I use it in a pivot or else where I have problem without the AGGR().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sample, just not sure how to attach a QVW here. Its a real pain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 13:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272880#M102143</guid>
      <dc:creator />
      <dc:date>2011-08-15T13:43:19Z</dc:date>
    </item>
    <item>
      <title>Whats wrong with this simple AGGR()?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272881#M102144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Sample attache now, please check the first post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 13:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272881#M102144</guid>
      <dc:creator />
      <dc:date>2011-08-15T13:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Whats wrong with this simple AGGR()?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272882#M102145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope its helps you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 13:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272882#M102145</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-15T13:50:54Z</dc:date>
    </item>
    <item>
      <title>Whats wrong with this simple AGGR()?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272883#M102146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry but I was trying to get the running totals, and in your attachment it looks like, its not working. Please correct me if I am missing something here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your effort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 14:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272883#M102146</guid>
      <dc:creator />
      <dc:date>2011-08-15T14:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Whats wrong with this simple AGGR()?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272884#M102147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are correct &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 14:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272884#M102147</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-15T14:32:14Z</dc:date>
    </item>
    <item>
      <title>Whats wrong with this simple AGGR()?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272885#M102148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lirons solution looks ok, to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative using rangesum:&lt;/P&gt;&lt;P&gt;=rangesum(before(sum(Amount),0, columnNo()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take care, if you change the pivot orientation (Year-Month vertical instead of horizontal) you must replace before() with above() and columnNo() with rowNo().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 14:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272885#M102148</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-15T14:35:54Z</dc:date>
    </item>
    <item>
      <title>Whats wrong with this simple AGGR()?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272886#M102149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou for the help and I think I am getting what I wanted, But what if the expression for month calculation is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Amount) - (sum(Expenses)-sum(vLastFctPayment.ServicingFee) ) how do I add this to the formula which is suggested by you here as seen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(Amount)+if(isnull(after(sum(Amount))),0,after([Amount1]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again,&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 15:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272886#M102149</guid>
      <dc:creator />
      <dc:date>2011-08-15T15:25:36Z</dc:date>
    </item>
    <item>
      <title>Whats wrong with this simple AGGR()?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272887#M102150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please ignore my previous post, as i figured it out and thanks for all your help. But my original question still remains unaswered as to why the AGGR dint work here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 15:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-simple-AGGR/m-p/272887#M102150</guid>
      <dc:creator />
      <dc:date>2011-08-15T15:48:34Z</dc:date>
    </item>
  </channel>
</rss>

