<?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: Aggr to sum over rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-to-sum-over-rows/m-p/683696#M247853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure to understand, try &lt;/P&gt;&lt;P&gt;sum(total &amp;lt;dim1,dim2&amp;gt; aggr(sum(rev)/sum(visits),dim1,dim2,dim3))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2014 16:21:12 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-07-30T16:21:12Z</dc:date>
    <item>
      <title>Aggr to sum over rows</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-to-sum-over-rows/m-p/683695#M247852</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'm trying to use aggr to sum rows over two dimensions, however it's returning the expression total and not the sum of the rows. I cannot change the 'total mode' to 'sum of rows' as it won't work for my application, I need to do this with an aggr function, but am unable to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen shot below illustrates issue:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2014-07-30 at 11.52.19.png" class="jive-image" src="/legacyfs/online/63424_Screen Shot 2014-07-30 at 11.52.19.png" style="width: 620px; height: 78px;" /&gt;&lt;/P&gt;&lt;P&gt;I need to return 103.87 for each record in dim1 and dim2. When I try this with an aggr, it returns the quotient evaluated over the sum of the records in the aggr, 38.006, whereas I need the sum 103.87. The expression for sumrpc is:&lt;/P&gt;&lt;P&gt;sum&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;aggr&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;NODISTINCT&lt;SPAN class="s1"&gt;&lt;BR /&gt; &lt;/SPAN&gt;sum&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;rev&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)/&lt;/SPAN&gt;sum&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;visits&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;dim1&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;dim2&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a sample, any help is welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-to-sum-over-rows/m-p/683695#M247852</guid>
      <dc:creator />
      <dc:date>2014-07-30T15:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr to sum over rows</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-to-sum-over-rows/m-p/683696#M247853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure to understand, try &lt;/P&gt;&lt;P&gt;sum(total &amp;lt;dim1,dim2&amp;gt; aggr(sum(rev)/sum(visits),dim1,dim2,dim3))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 16:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-to-sum-over-rows/m-p/683696#M247853</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-30T16:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr to sum over rows</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-to-sum-over-rows/m-p/683697#M247854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great work!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 16:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-to-sum-over-rows/m-p/683697#M247854</guid>
      <dc:creator />
      <dc:date>2014-07-30T16:44:45Z</dc:date>
    </item>
  </channel>
</rss>

