<?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 Aggr Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/278967#M103848</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;Aggr() functions is used when you are counting or sum up by a particular field(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dept&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&lt;/P&gt;&lt;P&gt;Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102&lt;/P&gt;&lt;P&gt;Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102&lt;/P&gt;&lt;P&gt;Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 103&lt;/P&gt;&lt;P&gt;Market&amp;nbsp;&amp;nbsp;&amp;nbsp; 104&lt;/P&gt;&lt;P&gt;Market&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose if we want to get the count of Distinct employees by department&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use Count(Distinct EmpID) then you will get the value as 4.&lt;/P&gt;&lt;P&gt;But if you use Aggr for getting Distinct Employee by department&lt;/P&gt;&lt;P&gt;then we have use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(Count(Distinct EmpID), Dept)) Now you will the get the value as 5.&amp;nbsp; For Sales Dept there are 3 and for Market 2 by summing up all this becomes 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is one of the sample scenario for using AGGR().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2012 06:49:14 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2012-02-14T06:49:14Z</dc:date>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/278966#M103847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;Hi everybody,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;Can anyone explain the aggr function with example, more than what is mentioned in reference manual?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;Thanks and regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;Murali&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 06:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/278966#M103847</guid>
      <dc:creator />
      <dc:date>2012-02-14T06:36:09Z</dc:date>
    </item>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/278967#M103848</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;Aggr() functions is used when you are counting or sum up by a particular field(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dept&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&lt;/P&gt;&lt;P&gt;Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102&lt;/P&gt;&lt;P&gt;Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102&lt;/P&gt;&lt;P&gt;Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 103&lt;/P&gt;&lt;P&gt;Market&amp;nbsp;&amp;nbsp;&amp;nbsp; 104&lt;/P&gt;&lt;P&gt;Market&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose if we want to get the count of Distinct employees by department&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use Count(Distinct EmpID) then you will get the value as 4.&lt;/P&gt;&lt;P&gt;But if you use Aggr for getting Distinct Employee by department&lt;/P&gt;&lt;P&gt;then we have use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(Count(Distinct EmpID), Dept)) Now you will the get the value as 5.&amp;nbsp; For Sales Dept there are 3 and for Market 2 by summing up all this becomes 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is one of the sample scenario for using AGGR().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 06:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/278967#M103848</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-14T06:49:14Z</dc:date>
    </item>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/278968#M103849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Jagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 07:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/278968#M103849</guid>
      <dc:creator />
      <dc:date>2012-02-14T07:03:20Z</dc:date>
    </item>
  </channel>
</rss>

