<?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 Aggregation of Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185666#M629101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to aggregate a set analyis like following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get SUM of COUNTED VALUES that are GREATER THAN a VALUE_LIMIT AGGREGATED OVER VALUE_GROUP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried follwoing without luck &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(AGGR(COUNT({&amp;lt;VALUE= {"&amp;gt;$(= [&lt;SPAN style="font-size: 13.3333px;"&gt;VALUE_LIMIT&lt;/SPAN&gt;])"}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;VALUE&lt;/SPAN&gt;),&lt;SPAN style="font-size: 13.3333px;"&gt;VALUE_GROUP&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read a lot of topics about smiliar problems, but nothing helped me.&lt;/P&gt;&lt;P&gt;Maybe the aggreagation should happen at a deeper level, inside the Set Analysis.&lt;/P&gt;&lt;P&gt;Any idea how to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2016 11:54:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-28T11:54:05Z</dc:date>
    <item>
      <title>Aggregation of Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185666#M629101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to aggregate a set analyis like following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get SUM of COUNTED VALUES that are GREATER THAN a VALUE_LIMIT AGGREGATED OVER VALUE_GROUP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried follwoing without luck &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(AGGR(COUNT({&amp;lt;VALUE= {"&amp;gt;$(= [&lt;SPAN style="font-size: 13.3333px;"&gt;VALUE_LIMIT&lt;/SPAN&gt;])"}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;VALUE&lt;/SPAN&gt;),&lt;SPAN style="font-size: 13.3333px;"&gt;VALUE_GROUP&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read a lot of topics about smiliar problems, but nothing helped me.&lt;/P&gt;&lt;P&gt;Maybe the aggreagation should happen at a deeper level, inside the Set Analysis.&lt;/P&gt;&lt;P&gt;Any idea how to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 11:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185666#M629101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-28T11:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185667#M629102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to look in the right direction, what exactly was the issue that you ran into?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 12:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185667#M629102</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-28T12:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185668#M629103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Its look correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 12:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185668#M629103</guid>
      <dc:creator>qlikview979</dc:creator>
      <dc:date>2016-09-28T12:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185669#M629104</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;it gives always the result 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Value, Value Limit, Value Group&lt;/P&gt;&lt;P&gt;1, 2, x&lt;/P&gt;&lt;P&gt;3, 2, x&lt;/P&gt;&lt;P&gt;4, 2, x&lt;/P&gt;&lt;P&gt;2, 4, y&lt;/P&gt;&lt;P&gt;2, 4, y&lt;/P&gt;&lt;P&gt;3, 4, y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this data the result should be 2 as only 2 Values are higher than their limit inside a group.&lt;/P&gt;&lt;P&gt;So counting it, it will give 2 for Value Group x and 0 for Value Group y.&lt;/P&gt;&lt;P&gt;Summing up the counts will still give the result of 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 12:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185669#M629104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-28T12:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185670#M629105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If see what you are trying to do. Set Analysis cannot do a row by row comparison. For this to happen you would need to either use If() function or create a flag in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(If(Value &amp;gt;= [Value Limit], 1, 0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Value &amp;gt;= [Value Limit], 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then on the front end, you can do this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Flag)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 12:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185670#M629105</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-28T12:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185671#M629106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does not look &lt;SPAN style="font-size: 13.3333px;"&gt;VALUE_LIMIT is a variable?&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;if you have a variable defined like &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;set &lt;SPAN style="font-size: 13.3333px;"&gt;VALUE_LIMIT=300 then your syntax should work else try something like below&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(AGGR(COUNT({&amp;lt;VALUE= {"&amp;gt;$(=Max( [&lt;SPAN style="font-size: 13.3333px;"&gt;VALUE_LIMIT&lt;/SPAN&gt;]))"}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;VALUE&lt;/SPAN&gt;),&lt;SPAN style="font-size: 13.3333px;"&gt;VALUE_GROUP&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 13:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185671#M629106</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2016-09-28T13:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185672#M629109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i thought about that, but how to aggeregate than on &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Value Group?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 13:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185672#M629109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-28T13:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185673#M629111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasi, &lt;/P&gt;&lt;P&gt;you solution is working if one group is selected. While selecting multiple groups to show the sum of each group for example inside a table each sum will be = 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 13:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185673#M629111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-28T13:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185674#M629112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do like this - &lt;/P&gt;&lt;P&gt;SUM(AGGR(Sum(Flag),[Value Group]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Sunny suggested, script like - &lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Value &amp;gt;= [Value Limit], 1, 0) as Flag&lt;/P&gt;&lt;P&gt;inline [&lt;/P&gt;&lt;P&gt;Value, Value Limit, Value Group&lt;/P&gt;&lt;P&gt;1, 2, x&lt;/P&gt;&lt;P&gt;3, 2, x&lt;/P&gt;&lt;P&gt;4, 2, x&lt;/P&gt;&lt;P&gt;2, 4, y&lt;/P&gt;&lt;P&gt;2, 4, y&lt;/P&gt;&lt;P&gt;3, 4, y ]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 13:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185674#M629112</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-09-28T13:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185675#M629113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/people/digvijay"&gt;digvijay&lt;/A&gt;‌ -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the benefit of doing &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum(Aggr(Sum(Flag),[Value Group]))&lt;/STRONG&gt;? It will equal Sum(Flag). Do you mean one of these?&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: 13px;"&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: 13px;"&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Aggr(Sum(&lt;SPAN style="color: #ff0000;"&gt;DISTINCT&lt;/SPAN&gt; Flag),[Value Group]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Aggr(&lt;SPAN style="color: #ff0000;"&gt;Avg&lt;/SPAN&gt;(Flag),[Value Group]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Aggr(&lt;SPAN style="color: #ff0000;"&gt;Only&lt;/SPAN&gt;(Flag),[Value Group]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 17:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185675#M629113</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-28T17:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185676#M629114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are useing Option1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and with this its finally working! &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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp; SUM(AGGR(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(If(Value &amp;gt;= [Value Limit], 1, 0))&lt;/STRONG&gt;,[Value Group]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all for your support!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 06:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-Set-Analysis/m-p/1185676#M629114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-29T06:13:03Z</dc:date>
    </item>
  </channel>
</rss>

