<?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/262869#M1203819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Umang you will get the same on the qlikview site itself , in training tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jun 2010 10:55:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-18T10:55:02Z</dc:date>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262868#M1203818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've been trying to get my hands on some reading material on the AGGR funciton. I have QV 8.5 which does not have much examples about the same. Would be really helpful if someone could upload a file, turorial etc explaining the same with examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 09:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262868#M1203818</guid>
      <dc:creator />
      <dc:date>2010-06-18T09:11:50Z</dc:date>
    </item>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262869#M1203819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Umang you will get the same on the qlikview site itself , in training tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 10:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262869#M1203819</guid>
      <dc:creator />
      <dc:date>2010-06-18T10:55:02Z</dc:date>
    </item>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262870#M1203820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashwin - hope Im not a bother biut could you tell me which training is that - or better send me a link or something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 11:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262870#M1203820</guid>
      <dc:creator />
      <dc:date>2010-06-18T11:17:26Z</dc:date>
    </item>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262871#M1203821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SIr, I am new at Qlik View. only 1 month exp&lt;/P&gt;&lt;P&gt;but I used to get most of help from the training from thik link hope it will help u after getting registered.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlik.com/us/services/training/courses"&gt;http://www.qlik.com/us/services/training/courses&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also i will recomend you to install QV 9.0 or hierversion because very good help has been provided over there too ................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 13:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262871#M1203821</guid>
      <dc:creator />
      <dc:date>2010-06-18T13:44:12Z</dc:date>
    </item>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262872#M1203822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Think of the aggr() function as making a temporary table. For instance, let's say we have this real table of data:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Customer, Value&lt;BR /&gt;A, 20&lt;BR /&gt;A, 30&lt;BR /&gt;B, 10&lt;BR /&gt;B, 15&lt;BR /&gt;C, 40&lt;/P&gt;&lt;P&gt;Now, as a nonsense requirement, let's say that we're looking for maximum value by customer, and then the minimum of THAT value across customers. Our max value by customer is A=30, B=15, C=40. Our min of those is 15. Note how we built a temporary table with three rows while calculating it. Aggr() is one way to build this temporary table. Our dimension is Customer, and our expression is max(Value). We could build this as a real chart, but instead we want to use it in an expression without doing so. The general format for aggr() is this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;aggr(expression, dimensions)&lt;/P&gt;&lt;P&gt;So in our case:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;aggr(max(Value),Customer)&lt;/P&gt;&lt;P&gt;We're trying to extract the minimum from that temporary table, that list of values, so we just enclose it in min():&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;min(aggr(max(Value),Customer))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 23:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262872#M1203822</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-18T23:35:17Z</dc:date>
    </item>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262873#M1203823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this very clear explanation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 22:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262873#M1203823</guid>
      <dc:creator />
      <dc:date>2011-04-14T22:37:01Z</dc:date>
    </item>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262874#M1203824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, thanks for this explanation, I can follow that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been using the box plot wizard which makes use of this function, but the wizard asks for a "dimension", an "aggregator" ? and an "expression". I can't figure out what the aggregator is for. When creating the box / wiskers qv then uses the function Aggr(expression,dimension,aggregator) in it's calculations. I can't find anything in the&amp;nbsp; documentation about a 3rd parameter in Aggr?&amp;nbsp; Can you help with a further explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stewart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2011 19:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262874#M1203824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-05T19:42:49Z</dc:date>
    </item>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262875#M1203825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good explanation on Aggr function. Thanks John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 02:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262875#M1203825</guid>
      <dc:creator />
      <dc:date>2011-11-04T02:35:09Z</dc:date>
    </item>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262876#M1203826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Imagine one custumer can have many invoices,an in case we want to know how many custumer have an invoice that are none than 120 days overdue.Also I want to group this by city ,so the only dimension I want to show is city.&lt;/P&gt;&lt;P&gt;In case Count(Distinct) will not work.In this case we have to use the aggregation function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggregation function are nothing but the temporary tables.&lt;/P&gt;&lt;P&gt;Syntax is aggr(expression,dimension)&lt;/P&gt;&lt;P&gt;as aggr(max(value),cstumer))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 09:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262876#M1203826</guid>
      <dc:creator>kamalqlik</dc:creator>
      <dc:date>2011-11-04T09:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262877#M1203827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I understand your  example. It is the box plot wizard I am finding hard to understand. It's a brilliant function that would take hours to do in other packages. I know the wizard works, but  I'd  just like to really understand what it is doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="cid:image004.jpg@01CC9B1E.615B4F80"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The wizard creates a number of expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg the centre line of the box plot is created by expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fractile(Aggr(sum(MidnightOccupancy),[CAL_EventDayName],[BedActivityDate]), 0.5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the dimension variable of the chart is, as would be expected  CAL_EventDayName.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all the examples I have seen so far, Aggr only has 2 parameters , but the box plot uses the dimension variable as a third&lt;/P&gt;&lt;P&gt;Based on the examples, I would have thought that the expression should have just been Fractile(Aggr(sum(MidnightOccupancy),[BedActivityDate]), 0.5)  with CAL_EventDayName  being the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="cid:image001.png@01CC9B16.4D6BD4C0"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example, I'm calculating the total occupancy of the hospital for every monday in the year, and then for the 52 mondays, finding the middle value….and doing that for each day in the week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I understand what the 3 parameter aggr is doing (and why), but I struggle to put it into English. That makes it difficult for me to explain to anyone else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stewart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 18:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262877#M1203827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-04T18:20:32Z</dc:date>
    </item>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262878#M1203828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not getting that what your reqirement is...Please can you upload your application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 05:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/262878#M1203828</guid>
      <dc:creator>kamalqlik</dc:creator>
      <dc:date>2011-11-08T05:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/1955876#M1219910</link>
      <description>&lt;P&gt;This is the best explanation of the aggr function I have seen, thank you for this. I have a follow up question: what would be the equivalent of this in the load script?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 12:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/1955876#M1219910</guid>
      <dc:creator>CreepyCatLady</dc:creator>
      <dc:date>2022-07-14T12:54:10Z</dc:date>
    </item>
  </channel>
</rss>

