<?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 variables with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-variables-with-set-analysis/m-p/1152968#M890632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this way you tried to nest aggregations which aren't allowed without the use of an aggr-wrapping. I'm not sure if it's make much sense to implement this instead of simply using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {2016}, Type = {1,2}&amp;gt;} Comm )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2016 08:06:17 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-08-23T08:06:17Z</dc:date>
    <item>
      <title>Sum variables with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-variables-with-set-analysis/m-p/1152967#M890631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i make a sum with set analysis, that uses a variable that also is a sum with set analysis.&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;Vcomm = sum({&amp;lt;Type = {1,2}&amp;gt; Comm}&lt;/P&gt;&lt;P&gt;and know i want to use this variable in the following expression:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {2016}&amp;gt;} $(Vcomm) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not work, although the syntax of the expression is correct.&lt;/P&gt;&lt;P&gt;How can i resolve this? I use the Variable Vcomm in many different graphs and tables, so i cannot change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Alwin&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/Sum-variables-with-set-analysis/m-p/1152967#M890631</guid>
      <dc:creator>alwinsch</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum variables with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-variables-with-set-analysis/m-p/1152968#M890632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this way you tried to nest aggregations which aren't allowed without the use of an aggr-wrapping. I'm not sure if it's make much sense to implement this instead of simply using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {2016}, Type = {1,2}&amp;gt;} Comm )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 08:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-variables-with-set-analysis/m-p/1152968#M890632</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-23T08:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sum variables with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-variables-with-set-analysis/m-p/1152969#M890633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and how does this aggr_wrapping work? Because my variable is in real life not that simple as described above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Alwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 08:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-variables-with-set-analysis/m-p/1152969#M890633</guid>
      <dc:creator>alwinsch</dc:creator>
      <dc:date>2016-08-23T08:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum variables with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-variables-with-set-analysis/m-p/1152970#M890634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would need to look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vcomm = aggr(sum({&amp;lt;Type = {1,2}&amp;gt;} Comm), Dim1, Dim2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {2016}&amp;gt;} $(Vcomm) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this you will need to specify the dimensions in which relation the inner aggregation should be performed and this kind of expression needs a lot more performance than a normal set analysis expression and you shouldn't use them if they aren't mandatory necessary: &lt;A href="https://community.qlik.com/qlik-blogpost/2980"&gt;When should the Aggr() function NOT be used?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you could rather need variables with parameter. This and many more about variables could you find here: &lt;A href="https://community.qlik.com/docs/DOC-14559"&gt;Variables&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 08:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-variables-with-set-analysis/m-p/1152970#M890634</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-23T08:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum variables with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-variables-with-set-analysis/m-p/1152971#M890635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the help,&lt;/P&gt;&lt;P&gt;i did it the easy way, without aggr and followed your first post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Alwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 08:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-variables-with-set-analysis/m-p/1152971#M890635</guid>
      <dc:creator>alwinsch</dc:creator>
      <dc:date>2016-08-24T08:17:45Z</dc:date>
    </item>
  </channel>
</rss>

