<?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: AVG expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AVG-expression/m-p/524228#M195867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to nest aggregation functions you need to use the aggr function:&lt;/P&gt;&lt;P&gt;avg(&lt;STRONG&gt;aggr(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d;"&gt;(max(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;[Actual Completion Date]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;[Actual Start Date]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;)&lt;STRONG&gt;,Dim1, Dim2 ... )&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Replace &lt;EM&gt;Dim1, Dim2 ...&lt;/EM&gt; with the dimensions over which min and max need to be aggregated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 07:50:59 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-09-16T07:50:59Z</dc:date>
    <item>
      <title>AVG expression</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-expression/m-p/524225#M195864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello&lt;/P&gt;&lt;P&gt;I have an expression in a table&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;max(&lt;SPAN style="color: #800000;"&gt;[Actual Completion Date]&lt;/SPAN&gt;) - &lt;SPAN style="color: #0000ff;"&gt;min&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Actual Start Date]&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I would like to have the average of this expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Avg(max(&lt;SPAN style="color: #800000;"&gt;[Actual Completion Date]&lt;/SPAN&gt;) - &lt;SPAN style="color: #0000ff;"&gt;min&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Actual Start Date]&lt;/SPAN&gt;) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;This d&lt;/SPAN&gt;oes not work.&lt;/P&gt;&lt;P&gt;The min and max is dependent on dimensions, I know.&lt;/P&gt;&lt;P&gt;Any ideas how to solve this?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 07:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-expression/m-p/524225#M195864</guid>
      <dc:creator />
      <dc:date>2013-09-16T07:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: AVG expression</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-expression/m-p/524226#M195865</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;&lt;/P&gt;&lt;P&gt;Try this interval(&lt;SPAN style="color: #3d3d3d;"&gt;Avg(max(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;[Actual Completion Date]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;[Actual Start Date]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;) )&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 07:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-expression/m-p/524226#M195865</guid>
      <dc:creator />
      <dc:date>2013-09-16T07:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: AVG expression</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-expression/m-p/524227#M195866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you have to use TOTAL keyword (though that depends on your requirement).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 07:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-expression/m-p/524227#M195866</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-16T07:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: AVG expression</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-expression/m-p/524228#M195867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to nest aggregation functions you need to use the aggr function:&lt;/P&gt;&lt;P&gt;avg(&lt;STRONG&gt;aggr(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d;"&gt;(max(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;[Actual Completion Date]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;[Actual Start Date]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;)&lt;STRONG&gt;,Dim1, Dim2 ... )&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Replace &lt;EM&gt;Dim1, Dim2 ...&lt;/EM&gt; with the dimensions over which min and max need to be aggregated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 07:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-expression/m-p/524228#M195867</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-16T07:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: AVG expression</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-expression/m-p/524229#M195868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked!&lt;/P&gt;&lt;P&gt;Hats off!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 09:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-expression/m-p/524229#M195868</guid>
      <dc:creator />
      <dc:date>2013-09-16T09:56:34Z</dc:date>
    </item>
  </channel>
</rss>

