<?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 Using AGGR &amp; AVG Function in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-AGGR-AVG-Function-in-Set-Analysis/m-p/610211#M1104808</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;Could some one help me,&lt;/P&gt;&lt;P&gt;if I need to use the following expression by substituting the SUM function with AVG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGGR(NODISTICT(&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;&lt;EM&gt;SUM&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;({&amp;lt;PERIOD={$(=MAX(PERIOD))},YEAR={$(=MAX(YEAR))}&amp;gt;}&amp;nbsp; Amount))), Category, Class)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I tried using with AVG function the resulting number is erroneous and does not give the average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate in advance any help that can be extended&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Mar 2014 00:27:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-23T00:27:14Z</dc:date>
    <item>
      <title>Using AGGR &amp; AVG Function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-AGGR-AVG-Function-in-Set-Analysis/m-p/610211#M1104808</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;Could some one help me,&lt;/P&gt;&lt;P&gt;if I need to use the following expression by substituting the SUM function with AVG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGGR(NODISTICT(&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;&lt;EM&gt;SUM&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;({&amp;lt;PERIOD={$(=MAX(PERIOD))},YEAR={$(=MAX(YEAR))}&amp;gt;}&amp;nbsp; Amount))), Category, Class)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I tried using with AVG function the resulting number is erroneous and does not give the average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate in advance any help that can be extended&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 00:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-AGGR-AVG-Function-in-Set-Analysis/m-p/610211#M1104808</guid>
      <dc:creator />
      <dc:date>2014-03-23T00:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGGR &amp; AVG Function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-AGGR-AVG-Function-in-Set-Analysis/m-p/610212#M1104809</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;You could write a script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=AGGR(NODISTINCT SUM({&amp;lt;PERIOD={$(=MAX(PERIOD))},YEAR={$(=MAX(YEAR))}&amp;gt;} Amount), Category, Class)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 06:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-AGGR-AVG-Function-in-Set-Analysis/m-p/610212#M1104809</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-03-23T06:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGGR &amp; AVG Function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-AGGR-AVG-Function-in-Set-Analysis/m-p/610213#M1104810</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;Try for avg script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg( AGGR( NODISTINCT SUM({&amp;lt;PERIOD={$(=MAX(PERIOD))}, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;YEAR={$(=MAX(YEAR))}&amp;nbsp;&amp;nbsp; &amp;gt;}Amount), Category, Class))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 06:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-AGGR-AVG-Function-in-Set-Analysis/m-p/610213#M1104810</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-03-23T06:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGGR &amp; AVG Function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-AGGR-AVG-Function-in-Set-Analysis/m-p/610214#M1104811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks Anand , but the result gives error in calculation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 18:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-AGGR-AVG-Function-in-Set-Analysis/m-p/610214#M1104811</guid>
      <dc:creator />
      <dc:date>2014-03-23T18:55:46Z</dc:date>
    </item>
  </channel>
</rss>

