<?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: Problem with Avg function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Avg-function/m-p/692441#M671445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I will try different uses of the Aggr() function, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Sep 2014 16:15:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-02T16:15:11Z</dc:date>
    <item>
      <title>Problem with Avg function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Avg-function/m-p/692439#M671443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;I have a problem with my following expression :&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;I'm trying to make a custom multiple list with the following expression :&lt;/P&gt;&lt;P&gt;if(ESMS.CODE_CATEGORIE=200,10 * ($(v_pct_plafond)/100), $(v_capacite_au_01/01/N) *&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;avg (COUT_MOYEN_NATIONAL.COUT_MOYEN)&lt;/EM&gt;&lt;/STRONG&gt; * ($(v_pct_plafond)/100)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't work beacuse of the AVG function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i replace the AVG expression with a constant, it works perfectly, i can choose any value as I want to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain me why? Is there any solution to make it work with the avg function?&lt;/P&gt;&lt;P&gt;We previously faced the same problem with sum() function and it seems that "aggr()" was the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this time, it's a bit more complicated&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 16:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Avg-function/m-p/692439#M671443</guid>
      <dc:creator />
      <dc:date>2014-09-02T16:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Avg function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Avg-function/m-p/692440#M671444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you may need to wrap the existing expression in an aggr() &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(&amp;nbsp; &amp;lt;existing expression &amp;gt;&amp;nbsp;&amp;nbsp; ,&amp;nbsp; &amp;lt;Dimension&amp;gt; ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using it in a chart with multiple dimensions, list all dimensions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you get stuck see if you can attach a QVW sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 16:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Avg-function/m-p/692440#M671444</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-02T16:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Avg function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Avg-function/m-p/692441#M671445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I will try different uses of the Aggr() function, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 16:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Avg-function/m-p/692441#M671445</guid>
      <dc:creator />
      <dc:date>2014-09-02T16:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Avg function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Avg-function/m-p/692442#M671446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is indeed the right solution, thanks a lot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 15:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Avg-function/m-p/692442#M671446</guid>
      <dc:creator />
      <dc:date>2014-09-03T15:59:42Z</dc:date>
    </item>
  </channel>
</rss>

