<?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: sum added with another sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876053#M654441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just need to add a closing bracket at the end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Calibri, sans-serif; font-size: 14.6666669845581px;"&gt;sum (if ( (sum (VALOR_X) / SUM (VALOR_Y)) * 100 &amp;lt;25, QTY)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 19:56:43 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-06-22T19:56:43Z</dc:date>
    <item>
      <title>sum added with another sum</title>
      <link>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876052#M654440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;I need to create an expression as follows:&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;sum (if ((sum (VALOR_X) / SUM (VALOR_Y)) * 100 &amp;lt;25, QTY).&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;It does not give error in syntax, but does not return the information.&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;How can I do this?&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;Can anyone help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876052#M654440</guid>
      <dc:creator />
      <dc:date>2015-06-22T18:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: sum added with another sum</title>
      <link>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876053#M654441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just need to add a closing bracket at the end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Calibri, sans-serif; font-size: 14.6666669845581px;"&gt;sum (if ( (sum (VALOR_X) / SUM (VALOR_Y)) * 100 &amp;lt;25, QTY)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 19:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876053#M654441</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-22T19:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: sum added with another sum</title>
      <link>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876054#M654442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan, Isn't this a nested aggregation -- that requires an aggr()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 01:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876054#M654442</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-06-23T01:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: sum added with another sum</title>
      <link>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876055#M654443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, yes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Must have been blinded ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dozetech, where / in which context are you using this expression? As Rob correctly said, you need to use advanced aggregation to be able to embed an aggregation function linke sum() into&amp;nbsp; another aggregation function. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 06:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876055#M654443</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-23T06:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: sum added with another sum</title>
      <link>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876056#M654444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning&lt;/P&gt;&lt;P&gt;I do a grouping as a percent range. Example: expense / Billing is less than 25% then sum amount.&lt;/P&gt;&lt;P&gt;I am unable to use the aggr ().&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Calibri, sans-serif; font-size: 14.66px;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;sum (if (aggr((sum (VALOR_X) / SUM (VALOR_Y)) * 100 &amp;lt;25), QTD)).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 11:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876056#M654444</guid>
      <dc:creator />
      <dc:date>2015-06-23T11:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: sum added with another sum</title>
      <link>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876057#M654445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expense / billing per which dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to add these dimension(s) as dimensions to the aggr() function, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( aggr( if( sum(VALOR_X) / sum(VALOR_Y) &amp;lt; 0.25, QTD), Dim1, Dim2, ...))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace Dim1, Dim2, ... with the dimensions you need to group by your percentage calculation.&lt;/P&gt;&lt;P&gt;(And either take care that QTD has a single value per these dimensions, or aggregate QTD, too.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 12:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-added-with-another-sum/m-p/876057#M654445</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-23T12:45:47Z</dc:date>
    </item>
  </channel>
</rss>

