<?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 sum with aggr ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226326#M78532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt; if I want to hold that value, I would like to add this.&lt;BR /&gt;&lt;BR /&gt; sum ({1 &amp;lt;[HEL_DATA_Datum&amp;gt; YEAR] = {$ (GetFieldSelections = ([HEL_DATA_Datum&amp;gt; YEAR]))}&amp;gt;}&lt;BR /&gt;&lt;BR /&gt; It should therefore be considered only when the year changes. All other changes are to be ignored.&lt;BR /&gt;&lt;BR /&gt; I tried that.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;=sum( &lt;B&gt;{1 &amp;lt;[HEL_DATA_Datum&amp;gt; YEAR] = {$ (GetFieldSelections = ([HEL_DATA_Datum&amp;gt; YEAR]))}&amp;gt;}&lt;/B&gt; Aggr(&lt;BR /&gt;&lt;BR /&gt;if( index(concat([HEL_BANNER_Banner]),'lock')&amp;gt;=1,&lt;BR /&gt;(sum([HEL_DATA_Imps mit Defaults])*0.5),(sum([HEL_DATA_Imps mit Defaults])) ) *&lt;BR /&gt;SAL_OPPORTUNITYLINEITEM_UnitPrice&lt;BR /&gt;&lt;BR /&gt;,SAL_OPPORTUNITY_Name, SAL_PRODUCT_Name))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But unfortunately without success. Perhaps you have an idea?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Feb 2011 19:01:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-23T19:01:49Z</dc:date>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226318#M78524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikview community,&lt;BR /&gt;&lt;BR /&gt; how can i make a table outside a sum of a custom formula column?&lt;/P&gt;&lt;P&gt;This formula-based column is calculated by two dimensioned fields. My intention is to add up this column outside.&lt;/P&gt;&lt;P&gt;Some users recommend this formula in the forum. =sum(aggr(sum([DATA_Imps]) * UnitPrice, UnitPrice))&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;But on closer look is not on the calculation. See snapshot.&lt;/P&gt;&lt;P&gt;What thinking mistake am I doing?&lt;BR /&gt;&lt;BR /&gt; Thank you!&lt;BR /&gt;&lt;BR /&gt; Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 21:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226318#M78524</guid>
      <dc:creator />
      <dc:date>2011-02-22T21:01:07Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226319#M78525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to replace Unit Price in the Aggr() function with the dimensions in your chart. Think of Aggr() as a Group By in SQL. You are grouping by unit price and then summing the values.&lt;/P&gt;&lt;P&gt;It looks like your chart has three dimensions, so you need:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=sum(aggr(sum([DATA_Imps]) * UnitPrice, OPP, Einheitspreis, Produkt))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 21:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226319#M78525</guid>
      <dc:creator />
      <dc:date>2011-02-22T21:11:09Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226320#M78526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NMiller,&lt;BR /&gt;&lt;BR /&gt; can not realize your recommendation! Is there no other way to take values directly from the chart?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 16:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226320#M78526</guid>
      <dc:creator />
      <dc:date>2011-02-23T16:02:04Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226321#M78527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt; unfortunately I can not from a formula-based form field a final sum. &lt;IMG alt="Super Angry" src="http://community.qlik.com/emoticons/emotion-39.gif" /&gt; &lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;&lt;BR /&gt;&lt;BR /&gt; Explanation:&lt;BR /&gt;&lt;BR /&gt; My table is calculated in every line the product of (quantity * price). Receives the product name (Produktitem) the content of 'lock', so the amount divided by 2. Otherwise not.&lt;/P&gt;&lt;P&gt;In sum, should appear as expected, a value of € 699,687.28.&lt;BR /&gt;&lt;BR /&gt; Unfortunately I did not manage to make a sum of these lines.&lt;BR /&gt; I've uploaded my qvw.&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 16:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226321#M78527</guid>
      <dc:creator />
      <dc:date>2011-02-23T16:25:21Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226322#M78528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, you need to replace Einheitspreis in the Text Box expression. Einheitspreis is an expression in the chart and has no meaning outside of the chart. Use the formula for Einheitspreis instead: SAL_OPPORTUNITYLINEITEM_UnitPrice.&lt;/P&gt;&lt;P&gt;Then Aggr() around your existing expression with the dimensions in your chart:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Sum(Aggr(&lt;BR /&gt;if( index(concat([HEL_BANNER_Banner]),'lock')&amp;gt;=1,&lt;BR /&gt;(sum([HEL_DATA_Imps mit Defaults])*0.5),(sum([HEL_DATA_Imps mit Defaults])) ) *&lt;BR /&gt;SAL_OPPORTUNITYLINEITEM_UnitPrice&lt;BR /&gt;,SAL_OPPORTUNITY_Name, SAL_PRODUCT_Name))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Place that into a Text Box and you get the 699687 you are looking for. Sample attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 17:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226322#M78528</guid>
      <dc:creator />
      <dc:date>2011-02-23T17:51:27Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226323#M78529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are my hero &lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much ! Arigato wise Ninja &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 17:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226323#M78529</guid>
      <dc:creator />
      <dc:date>2011-02-23T17:56:14Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226324#M78530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My pleasure. I'm adding the quote, "Arigato wise Ninja," to my business card! &lt;IMG alt="Cool" src="http://community.qlik.com/emoticons/emotion-11.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 18:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226324#M78530</guid>
      <dc:creator />
      <dc:date>2011-02-23T18:10:47Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226325#M78531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I review your aplictation and I think that this is the formula that you need.&lt;/P&gt;&lt;P&gt;=sum(aggr(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(index(concat([HEL_BANNER_Banner]),'lock')&amp;gt;=1,sum([HEL_DATA_Imps mit Defaults]*0.5),sum([HEL_DATA_Imps mit Defaults]) )&lt;/P&gt;&lt;P&gt;*SAL_OPPORTUNITYLINEITEM_UnitPrice&lt;/P&gt;&lt;P&gt;,SAL_PRODUCT_Name))&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 18:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226325#M78531</guid>
      <dc:creator />
      <dc:date>2011-02-23T18:18:06Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226326#M78532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt; if I want to hold that value, I would like to add this.&lt;BR /&gt;&lt;BR /&gt; sum ({1 &amp;lt;[HEL_DATA_Datum&amp;gt; YEAR] = {$ (GetFieldSelections = ([HEL_DATA_Datum&amp;gt; YEAR]))}&amp;gt;}&lt;BR /&gt;&lt;BR /&gt; It should therefore be considered only when the year changes. All other changes are to be ignored.&lt;BR /&gt;&lt;BR /&gt; I tried that.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;=sum( &lt;B&gt;{1 &amp;lt;[HEL_DATA_Datum&amp;gt; YEAR] = {$ (GetFieldSelections = ([HEL_DATA_Datum&amp;gt; YEAR]))}&amp;gt;}&lt;/B&gt; Aggr(&lt;BR /&gt;&lt;BR /&gt;if( index(concat([HEL_BANNER_Banner]),'lock')&amp;gt;=1,&lt;BR /&gt;(sum([HEL_DATA_Imps mit Defaults])*0.5),(sum([HEL_DATA_Imps mit Defaults])) ) *&lt;BR /&gt;SAL_OPPORTUNITYLINEITEM_UnitPrice&lt;BR /&gt;&lt;BR /&gt;,SAL_OPPORTUNITY_Name, SAL_PRODUCT_Name))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But unfortunately without success. Perhaps you have an idea?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 19:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226326#M78532</guid>
      <dc:creator />
      <dc:date>2011-02-23T19:01:49Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226327#M78533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do something like this:&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;[HEL_DATA_Datum &amp;gt; YEAR]={"$(=Max([HEL_DATA_Datum &amp;gt; YEAR]))"}&amp;gt;} aggr(&lt;/P&gt;&lt;P&gt;if(index(concat([HEL_BANNER_Banner]),'lock')&amp;gt;=1,&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;[HEL_DATA_Datum &amp;gt; YEAR]={"$(=Max([HEL_DATA_Datum &amp;gt; YEAR]))"}&amp;gt;} [HEL_DATA_Imps mit Defaults])*sum({1&amp;lt;[HEL_DATA_Datum &amp;gt; YEAR]={"$(=Max([HEL_DATA_Datum &amp;gt; YEAR]))"}&amp;gt;} SAL_OPPORTUNITYLINEITEM_UnitPrice)*0.5,&lt;/P&gt;&lt;P&gt;(sum({1&amp;lt;[HEL_DATA_Datum &amp;gt; YEAR]={"$(=Max([HEL_DATA_Datum &amp;gt; YEAR]))"}&amp;gt;} [HEL_DATA_Imps mit Defaults])*sum({1&amp;lt;[HEL_DATA_Datum &amp;gt; YEAR]={"$(=Max([HEL_DATA_Datum &amp;gt; YEAR]))"}&amp;gt;} SAL_OPPORTUNITYLINEITEM_UnitPrice)))&lt;/P&gt;&lt;P&gt;,SAL_PRODUCT_Name))&lt;/P&gt;&lt;P&gt;It work with 2011, but has some problems with 2010, maybe you can check the detail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 20:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226327#M78533</guid>
      <dc:creator />
      <dc:date>2011-02-23T20:12:27Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226328#M78534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Octavio,&lt;/P&gt;&lt;P&gt;hmmm, unfortunately it's not what I'm looking for.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 20:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226328#M78534</guid>
      <dc:creator />
      <dc:date>2011-02-23T20:46:59Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226329#M78535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NMiller,&lt;/P&gt;&lt;P&gt;can you help me with my problem ?&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 22:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226329#M78535</guid>
      <dc:creator />
      <dc:date>2011-02-23T22:43:51Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226330#M78536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add an equals sign and remove the space after the dollar sign in your dollar sign expansion. Maybe:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=sum( {1 &amp;lt;[HEL_DATA_Datum&amp;gt; YEAR] = {&lt;STRONG&gt;$(=&lt;/STRONG&gt;GetFieldSelections([HEL_DATA_Datum&amp;gt; YEAR]))}&amp;gt;} Aggr(&lt;BR /&gt;if( index(concat([HEL_BANNER_Banner]),'lock')&amp;gt;=1,&lt;BR /&gt;(sum([HEL_DATA_Imps mit Defaults])*0.5),(sum([HEL_DATA_Imps mit Defaults])) ) *&lt;BR /&gt;SAL_OPPORTUNITYLINEITEM_UnitPrice&lt;BR /&gt;,SAL_OPPORTUNITY_Name, SAL_PRODUCT_Name))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;For dollar sign expansions (when using expressions), use (no spaces after the dollar sign, I think that has been shown to cause errors): &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;$(=...)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Also, is your field called HEL_DATA_Datum&amp;gt; YEAR? That greater than sign is throwing me off, but if that is the name, then it should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 22:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226330#M78536</guid>
      <dc:creator />
      <dc:date>2011-02-23T22:50:13Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226331#M78537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt; this is really weird! I already have a text box, which was defined as follows.&lt;/P&gt;&lt;P&gt;####&lt;BR /&gt;='Totalprice (TOTAL) PLAN: ' &amp;amp; sum ({1&amp;lt; [HEL_DATA_Datum &amp;gt; YEAR] = {$(=GetFieldSelections([HEL_DATA_Datum &amp;gt; YEAR]))} &amp;gt;} SAL_OPPORTUNITYLINEITEM_TotalPrice )&lt;BR /&gt;####&lt;/P&gt;&lt;P&gt;This works as required. The displayed value does not change when I click on a field somewhere else. Except for the [HEL_DATA_Datum&amp;gt; YEAR].&lt;BR /&gt;&lt;BR /&gt; Exactly the same function I need for the text box also.&lt;BR /&gt;&lt;BR /&gt; But your proposed code for the text box changes as soon as I make a selection elsewhere. But it should only change if I have a Selekttion in Field [HEL_DATA_Datum&amp;gt; YEAR].&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 23:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226331#M78537</guid>
      <dc:creator />
      <dc:date>2011-02-23T23:21:45Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226332#M78538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my proposed expression, there are Sums without the {1} Set Analysis clause. In your working expression, every (only one) aggregate function has the {1} to ignore selections.&lt;/P&gt;&lt;P&gt;When using Aggr() and multiple aggregate functions (Sum), you have to be careful where you put the Set Analysis. I don't have a definitive rule for how it works; most of the time I just use guess and check. In this case, I would guess:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=sum({1&amp;lt;[HEL_DATA_Datum&amp;gt; YEAR]={&lt;STRONG&gt;$(=&lt;/STRONG&gt;GetFieldSelections([HEL_DATA_Datum&amp;gt; YEAR]))}&amp;gt;}&lt;BR /&gt; Aggr(if( index(concat([HEL_BANNER_Banner]),'lock')&amp;gt;=1,&lt;BR /&gt; (sum({1}[HEL_DATA_Imps mit Defaults])*0.5),&lt;BR /&gt; (sum({1}[HEL_DATA_Imps mit Defaults])) ) *&lt;BR /&gt; SAL_OPPORTUNITYLINEITEM_UnitPrice&lt;BR /&gt;,SAL_OPPORTUNITY_Name, SAL_PRODUCT_Name))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You may also need to put the GetFieldSelections inside the inner sums, but I'm not sure. You may be able to put it in the inners and not the outer Sum. Try different combinations until you get the answer you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 16:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226332#M78538</guid>
      <dc:creator />
      <dc:date>2011-02-24T16:09:56Z</dc:date>
    </item>
    <item>
      <title>sum with aggr ?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226333#M78539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wise Ninja &lt;IMG alt="Cool" src="http://community.qlik.com/emoticons/emotion-11.gif" /&gt;&lt;BR /&gt;&lt;BR /&gt; Unfortunately, I'm not handle with this aggregate function [:'(] No matter how I twist or turn, it is not what I expect. I thank you anyway and your standby. You are really cooperative and cool.&lt;BR /&gt;&lt;BR /&gt; I am still at the beginning and needs to learn a lot.&lt;BR /&gt;&lt;BR /&gt; Sincerely,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 17:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-aggr/m-p/226333#M78539</guid>
      <dc:creator />
      <dc:date>2011-02-24T17:48:36Z</dc:date>
    </item>
  </channel>
</rss>

