<?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: How to make Avg ignore null values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-Avg-ignore-null-values/m-p/249920#M499582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes, sorry, my mistake. The Avg function was taking an average of several Sum functions (and all that within an Aggr). It is the Sum that is converting nulls to zeros and causing trouble.&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2011 15:39:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-06T15:39:40Z</dc:date>
    <item>
      <title>How to make Avg ignore null values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-Avg-ignore-null-values/m-p/249917#M499579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Does anyone know how to make the AVG calculation in a chart expression ignore null values?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example, if I have three values:&amp;nbsp; 3, 5, and null; then I would want the average to be 4, not 2.67.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 15:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-Avg-ignore-null-values/m-p/249917#M499579</guid>
      <dc:creator />
      <dc:date>2011-07-01T15:32:59Z</dc:date>
    </item>
    <item>
      <title>How to make Avg ignore null values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-Avg-ignore-null-values/m-p/249918#M499580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg ( if(isnull(Fieldname))=0,Fieldname)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 15:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-Avg-ignore-null-values/m-p/249918#M499580</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-07-01T15:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Avg ignore null values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-Avg-ignore-null-values/m-p/249919#M499581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's strange, I was sure that avg() already ignored nulls.&amp;nbsp; I just tried rangeavg(3,5,null()) and got 4, so rangeavg() ignores nulls as expected.&amp;nbsp; OK, built a quick little example, and avg() ignored nulls as well.&amp;nbsp; Maybe a version difference?&amp;nbsp; That's in V9SR6.&amp;nbsp; Same behavior in V10SR2.&amp;nbsp; I think your problem may be something different than you think it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 23:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-Avg-ignore-null-values/m-p/249919#M499581</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-01T23:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Avg ignore null values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-Avg-ignore-null-values/m-p/249920#M499582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes, sorry, my mistake. The Avg function was taking an average of several Sum functions (and all that within an Aggr). It is the Sum that is converting nulls to zeros and causing trouble.&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 15:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-Avg-ignore-null-values/m-p/249920#M499582</guid>
      <dc:creator />
      <dc:date>2011-07-06T15:39:40Z</dc:date>
    </item>
  </channel>
</rss>

