<?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: Average of max values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238698#M393678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you said it's not working? Can you explain little more here? Which dimensions you have used? What is the expression you have used?&lt;/P&gt;&lt;P&gt;The expression I gave was for 2nd requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For both of your requirements, do you want to use CUSTOMER and YEAR both as Dimensions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2016 18:29:25 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2016-11-28T18:29:25Z</dc:date>
    <item>
      <title>Average of max values?</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238693#M393673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I explain the case with which I have been fighting for a couple of days.&lt;/P&gt;&lt;P&gt;I need to get the average value of a group of maximum values. The example would look something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="312" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" width="240"&gt;&lt;TBODY&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;YEAR&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;CUSTOMER&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;SALES&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;2014&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;2014&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;2014&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;2014&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;2015&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;2015&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;2015&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;2015&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;2016&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;2016&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;2016&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="80"&gt;2016&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="80"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="80"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;In a table I am giving the maximum sales value per customer, in this case, the maximum values, per year and customer would be 100 - 80 for 2014, 150 - 100 for 2015 and 80 - 70 for 2016.&lt;/P&gt;&lt;P&gt;On the other hand, in another table, I need to calculate the average of the maximum sales per customer, this time without grouping per year. Thus, for client A (100 + 150 + 80) / 3 = 110, and for client B (80 + 60 + 70) / 3 = 83.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get that value by using the AGGR function but I can not find the right grouping.&lt;/P&gt;&lt;P&gt;My test is something like this:&lt;/P&gt;&lt;P&gt;= Aggr (MAX [[Sales]), [Client], [Year]&lt;/P&gt;&lt;P&gt;Can it be done with AGGR? Is there any way to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 15:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238693#M393673</guid>
      <dc:creator>sgonzalez_adaso</dc:creator>
      <dc:date>2016-11-28T15:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Average of max values?</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238694#M393674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimension &lt;/P&gt;&lt;P&gt;CUSTOMER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;=Avg(Aggr(Max(SALES),CUSTOMER,YEAR))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 15:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238694#M393674</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-11-28T15:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Average of max values?</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238695#M393675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mistake.&lt;/P&gt;&lt;P&gt;My dimension is CUSTOMER, of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression is not working for me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 15:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238695#M393675</guid>
      <dc:creator>sgonzalez_adaso</dc:creator>
      <dc:date>2016-11-28T15:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Average of max values?</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238696#M393676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this something you are looking for ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstTable: &lt;/P&gt;&lt;P&gt;Dim -&amp;gt; YEAR,&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; CUSTOMER&lt;/P&gt;&lt;P&gt;Expr -&amp;gt; = Max(SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd Table:&lt;/P&gt;&lt;P&gt;Dim -&amp;gt; CUSTOMER&lt;/P&gt;&lt;P&gt;Expr-&amp;gt; = Num(Sum(Aggr(MAX(SALES), CUSTOMER,YEAR ))/Count(Aggr(MAX(SALES), YEAR,CUSTOMER )), '#,##0.00')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 16:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238696#M393676</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-11-28T16:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Average of max values?</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238697#M393677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;avg(DISTINCT Aggr(max(VENTAS),ANO,CLIENTE))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 16:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238697#M393677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-28T16:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Average of max values?</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238698#M393678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you said it's not working? Can you explain little more here? Which dimensions you have used? What is the expression you have used?&lt;/P&gt;&lt;P&gt;The expression I gave was for 2nd requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For both of your requirements, do you want to use CUSTOMER and YEAR both as Dimensions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 18:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-max-values/m-p/1238698#M393678</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-11-28T18:29:25Z</dc:date>
    </item>
  </channel>
</rss>

