<?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: Set expression, Aggr() and variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368190#M835468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mats,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;=Money(Avg(Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;{$&amp;lt;Scope={'Scope Q2'}&amp;gt;} &lt;/SPAN&gt;$(eUmsatz),[Management ID])), '#.###,##€', ',', '.')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Andrey&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 May 2017 13:24:44 GMT</pubDate>
    <dc:creator>ahaahaaha</dc:creator>
    <dc:date>2017-05-31T13:24:44Z</dc:date>
    <item>
      <title>Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368188#M835466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Dear Community,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following expression to calculate the average revenue (revenue=$(eUmsatz)) of a group of companies (Management IDs):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Money(Avg(Aggr($(eUmsatz),[Management ID])), '#.###,##€', ',', '.')&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This works just fine.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I would now like to further narrow down the results by using set expression.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The field is "Scope" and the value I would like to limit the expression to and then, in another object, exclude is "Scope Q2".&lt;BR /&gt;&lt;BR /&gt;The Set Analysis Wizard suggests: =Avg({$&amp;lt;Scope={'Scope Q2'}&amp;gt;}$(eUmsatz)) &lt;BR /&gt;I still need to add the Aggr() though. Can anyone tell me how the full expression looks like?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Mats&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368188#M835466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368189#M835467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PS: The variable includes Sum(), that is why Aggr() is needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 13:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368189#M835467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-31T13:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368190#M835468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mats,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;=Money(Avg(Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;{$&amp;lt;Scope={'Scope Q2'}&amp;gt;} &lt;/SPAN&gt;$(eUmsatz),[Management ID])), '#.###,##€', ',', '.')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Andrey&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 13:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368190#M835468</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-05-31T13:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368191#M835469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've actually tried this but the result still adjusts to the selection in the "Scope" field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165355_Capture.JPG" style="height: 144px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It says Expression OK but still marks part of the set expression as red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could the set expression part be at the wrong place?&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;Regards,&lt;/P&gt;&lt;P&gt;Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 13:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368191#M835469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-31T13:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368192#M835470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;=Money(Avg(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;{$&amp;lt;Scope={'Scope Q2'}&amp;gt;} &lt;/SPAN&gt;Aggr(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;$(eUmsatz),[Management ID])), '#.###,##€', ',', '.')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 13:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368192#M835470</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-05-31T13:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368193#M835471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be helpful if you can share some sample data &amp;amp; expected output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 13:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368193#M835471</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2017-05-31T13:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368194#M835472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Money(Avg({&amp;lt; Scope = {'Scope Q2'} &amp;gt;} Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;$(eUmsatz)&lt;/SPAN&gt;, [Management ID])), '#.###,##€', ',', '.')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 13:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368194#M835472</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-05-31T13:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368195#M835473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax is right now, thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if it's possible to also disregard the selections that are made in the field Scope for this expression? And just in this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an action button to switch between "Scope Q2" and the excluded values in Q2 in this field (NULL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever I switch to the excluded values, the expression doesn't return a value anymore, which is probably&lt;/P&gt;&lt;P&gt;expected because the set expression still considers all of my selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 13:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368195#M835473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-31T13:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368196#M835474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your expression behind &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;$(eUmsatz), you need to add the set analysis within this variable's expression also&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 13:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368196#M835474</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-31T13:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368197#M835475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right, Set Analysis expression overrides all your choices in field Scope&amp;nbsp; by the value Scope = Scope Q2. Maybe then try to use condition If similar to this&lt;/P&gt;&lt;P&gt;If(Condition1, Expression with Scope = Scope Q2, another Expression with your selection).&lt;/P&gt;&lt;P&gt;As variant, for Condition1 above expression If, you can create a variable whose value is changed each time you click button (add this action to the button macro).&lt;/P&gt;&lt;P&gt;But in general it is difficult to give exact advice without seeing your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 14:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368197#M835475</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-05-31T14:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368198#M835476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the variable &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;$(eUmsatz) is&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;(Sum({$&amp;lt; [INCOMESTATEMENT_TEXT] = {'Net sales total'}&amp;gt;}[Period Value GC]) ) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;You actually helped me with the action button for the 'Scope' selection a while ago, thanks again.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 14:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368198#M835476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-31T14:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368199#M835477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum({$&amp;lt; [INCOMESTATEMENT_TEXT] = {'Net sales total'}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Scope={'Scope Q2'}&lt;/SPAN&gt;&amp;gt;}[Period Value GC])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Sum({$&amp;lt; [INCOMESTATEMENT_TEXT] = {'Net sales total'}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Scope&lt;/SPAN&gt;&amp;gt;}[Period Value GC])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 14:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368199#M835477</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-31T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368200#M835478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, it's difficult to explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the app attached. The object with the expression is the blue Text Box in the middle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to achieve is to compare the average revenue for companies that are in scope ('scope Q2')&lt;/P&gt;&lt;P&gt;with the revenue of individual companies that are not in scope (null). You can switch by clicking the action buttons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 14:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368200#M835478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-31T14:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368201#M835479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expected output based on the selection of buttons? Do you need a single text box object or 2 text box objects?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 14:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368201#M835479</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-31T14:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368202#M835480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just a single text box per average KPI for the in scope companies (like the ones at the top) &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table should then list the KPIs for the individual out of scope companies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe it's not even necessary to use the action buttons because this comparison is all that's needed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 14:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368202#M835480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-31T14:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368203#M835481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are already seeing the blue text box to show the Scope Q2 things, do you want this number to stay when you select Not in scope Q2? Is this the requirement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 14:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368203#M835481</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-31T14:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368204#M835482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;exactly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 14:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368204#M835482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-31T14:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368205#M835483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Money(Avg({&amp;lt;Scope={'Scope Q2'}&lt;SPAN style="color: #ff0000;"&gt;, [Management ID]&lt;/SPAN&gt;&amp;gt;} Aggr($(eUmsatz),[Management ID])), '#.###,##€', ',', '.')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and variable&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Sum({$&amp;lt; [INCOMESTATEMENT_TEXT] = {'Net sales total'}&lt;SPAN style="color: #ff0000;"&gt;,&amp;nbsp; [Management ID]&lt;/SPAN&gt;&amp;gt;}[Period Value GC])) &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 14:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368205#M835483</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-31T14:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368206#M835484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well this seems to work just fine, I think I'll create an additional variable for this as I am using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(eUmsatz) for other dimensions than [Management ID] as well. Thanks a lot! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now, for the table with the companies that are not in scope and where I don't need an average..&lt;BR /&gt;&lt;/SPAN&gt;Can I just use E() with the original variable to show the individual revenues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Something like&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; {$&amp;lt;Scope = E({1&amp;lt;Scope={‘Scope Q2’}&amp;gt;})&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;$(eUmsatz)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) or similar?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 15:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368206#M835484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-31T15:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression, Aggr() and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368207#M835485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For exclusion you can do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Scope&lt;SPAN style="color: #ff0000;"&gt; &lt;SPAN style="font-size: 14pt;"&gt;-&lt;/SPAN&gt;&lt;/SPAN&gt;= {'Scope Q2'}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but once again what is the expected output here? Tried this, but this isn't giving anything&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({&amp;lt;Scope -={'Scope Q2'}, [Management ID]&amp;gt;} Aggr($(eUmsatz),[Management ID]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 15:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-Aggr-and-variables/m-p/1368207#M835485</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-31T15:07:03Z</dc:date>
    </item>
  </channel>
</rss>

