<?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: Question about AGGR in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-about-AGGR/m-p/1267049#M399044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jackie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're familiar with SQL, you can consider AGGR function as an analog to GROUP BY statement.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(Amount)&lt;/P&gt;&lt;P&gt;From Table1&lt;/P&gt;&lt;P&gt;Group By&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analog to AGGR(sum(Amount) ,&amp;nbsp; Customer_ID, Location) .&lt;/P&gt;&lt;P&gt;This expression returns the list of SUMs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you may need to aggregate the&amp;nbsp; list of SUMs above and to use it in the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg( AGGR(sum( Amount) ,&amp;nbsp; Customer_ID, Location))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you need the most successful customer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(AGGR( sum( Amount) ,&amp;nbsp; Customer_ID, Location))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2017 18:57:13 GMT</pubDate>
    <dc:creator>bgerchikov</dc:creator>
    <dc:date>2017-01-31T18:57:13Z</dc:date>
    <item>
      <title>Question about AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-AGGR/m-p/1267048#M399043</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;I know there are tons of posts about AGGR but I cant seem to understand it.. or how it ends up truly working..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess im trying to see if someone can help explain it in a more simplified manner maybe..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like why use aggr... what other type of commands are there besides AGGR...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the difference between&amp;nbsp; AGGR(sum(blah blah)&amp;nbsp; vs&amp;nbsp;&amp;nbsp; SUM(AGGR(Sum(blah blah)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how it affects or not affects showing subtotals..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe some examples with simple math.. that can make it easy to understand..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry this makes my head spin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 17:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-AGGR/m-p/1267048#M399043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-31T17:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Question about AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-AGGR/m-p/1267049#M399044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jackie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're familiar with SQL, you can consider AGGR function as an analog to GROUP BY statement.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(Amount)&lt;/P&gt;&lt;P&gt;From Table1&lt;/P&gt;&lt;P&gt;Group By&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analog to AGGR(sum(Amount) ,&amp;nbsp; Customer_ID, Location) .&lt;/P&gt;&lt;P&gt;This expression returns the list of SUMs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you may need to aggregate the&amp;nbsp; list of SUMs above and to use it in the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg( AGGR(sum( Amount) ,&amp;nbsp; Customer_ID, Location))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you need the most successful customer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(AGGR( sum( Amount) ,&amp;nbsp; Customer_ID, Location))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 18:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-AGGR/m-p/1267049#M399044</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2017-01-31T18:57:13Z</dc:date>
    </item>
  </channel>
</rss>

