<?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 SetAnalysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208975#M64132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using Sums inside another Sum function. That does not work. If you need the nested Sums, you must use the Aggr() function.&lt;/P&gt;&lt;P&gt;When using the Aggr() function, you will need to define the dimensions you wish to aggregate by. Maybe something like this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} Aggr(&lt;BR /&gt;ActivityDuration*([set (pcs/sec)])-&lt;BR /&gt;(sum(Total &amp;lt;ActivityDefinitionId&amp;gt; Output))*&lt;BR /&gt;StandardValueAddedTime, ActivityDefinitionId))&lt;BR /&gt;/sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} ActivityDuration)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But I think you will need to add each dimensions in your chart as parameters to the Aggr() function:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} Aggr(&lt;BR /&gt;ActivityDuration*([set (pcs/sec)])-&lt;BR /&gt;(sum(Total &amp;lt;ActivityDefinitionId&amp;gt; Output))*&lt;BR /&gt;StandardValueAddedTime, ActivityDefinitionId, OtherDim, OtherDim2))&lt;BR /&gt;/sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} ActivityDuration)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Dec 2010 18:56:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-06T18:56:06Z</dc:date>
    <item>
      <title>SetAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208970#M64127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2978_sourceID:2978" /&gt;&lt;/P&gt;&lt;P&gt;I wanted to group all the ActivityDefinitionId which are same(124) in the Below SetAnalysis Formula. How can do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;([set (pcs/sec)]* ActivityDuration - sum({$&amp;lt;ActivityDefinitionId}&amp;gt;}Output))*StandardValueAddedTime&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 13:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208970#M64127</guid>
      <dc:creator />
      <dc:date>2010-12-01T13:21:09Z</dc:date>
    </item>
    <item>
      <title>SetAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208971#M64128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suming expression values with exist within the same dimension value is done by using Total. For example:&lt;/P&gt;&lt;P&gt;sum(Total &amp;lt;ActivityDefinitionId&amp;gt; Output)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 22:49:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208971#M64128</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-12-01T22:49:35Z</dc:date>
    </item>
    <item>
      <title>SetAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208972#M64129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello carl,&lt;/P&gt;&lt;P&gt;can you change my expression with Total? I am not getting the syntax right.&lt;/P&gt;&lt;P&gt;Thanks for ur answer&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 23:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208972#M64129</guid>
      <dc:creator />
      <dc:date>2010-12-01T23:15:07Z</dc:date>
    </item>
    <item>
      <title>SetAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208973#M64130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this work?&lt;/P&gt;&lt;P&gt;([set (pcs/sec)]* ActivityDuration - sum(Total &amp;lt;ActivityDefinitionId&amp;gt; Output))*StandardValueAddedTime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 23:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208973#M64130</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-12-01T23:25:07Z</dc:date>
    </item>
    <item>
      <title>SetAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208974#M64131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Karl,&lt;/P&gt;&lt;P&gt;It works but one more extension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sum({&amp;lt;ProductCategory = {'G'}&amp;gt;}ActivityDuration*([set (pcs/sec)])-(sum(Total &amp;lt;ActivityDefinitionId&amp;gt; Output))*StandardValueAddedTime)/sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} ActivityDuration)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;some comma somewhere is wrong I guess or ')' can you help me?&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 17:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208974#M64131</guid>
      <dc:creator />
      <dc:date>2010-12-06T17:54:48Z</dc:date>
    </item>
    <item>
      <title>SetAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208975#M64132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using Sums inside another Sum function. That does not work. If you need the nested Sums, you must use the Aggr() function.&lt;/P&gt;&lt;P&gt;When using the Aggr() function, you will need to define the dimensions you wish to aggregate by. Maybe something like this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} Aggr(&lt;BR /&gt;ActivityDuration*([set (pcs/sec)])-&lt;BR /&gt;(sum(Total &amp;lt;ActivityDefinitionId&amp;gt; Output))*&lt;BR /&gt;StandardValueAddedTime, ActivityDefinitionId))&lt;BR /&gt;/sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} ActivityDuration)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But I think you will need to add each dimensions in your chart as parameters to the Aggr() function:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} Aggr(&lt;BR /&gt;ActivityDuration*([set (pcs/sec)])-&lt;BR /&gt;(sum(Total &amp;lt;ActivityDefinitionId&amp;gt; Output))*&lt;BR /&gt;StandardValueAddedTime, ActivityDefinitionId, OtherDim, OtherDim2))&lt;BR /&gt;/sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} ActivityDuration)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 18:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SetAnalysis/m-p/208975#M64132</guid>
      <dc:creator />
      <dc:date>2010-12-06T18:56:06Z</dc:date>
    </item>
  </channel>
</rss>

