<?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: Make average ignore NULL, BLANK and hyphen fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Make-average-ignore-NULL-BLANK-and-hyphen-fields/m-p/1148411#M898021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes avg ignore those troublemakers by default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2016 16:08:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-26T16:08:05Z</dc:date>
    <item>
      <title>Make average ignore NULL, BLANK and hyphen fields</title>
      <link>https://community.qlik.com/t5/QlikView/Make-average-ignore-NULL-BLANK-and-hyphen-fields/m-p/1148408#M898018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I make average (avg) function to ignore NULL, BLANK and hyphen ( - ) fields? I only want average to take into account valid numeric values. At the same time, I want to make the average of certain fields complaining a criteria (Order Type='Pending').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg({$&amp;lt;[Order Type] = {"Pending'}&amp;gt;} if(isNumeric([Hours]), [Hours])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will be equivalent to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;[Order Type] = {'Pending'}&amp;gt;}[Hours])/count({$&amp;lt;[Order Type] = {'Pending'}&amp;gt;}if(IsNum([Hours]),[Hours]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-average-ignore-NULL-BLANK-and-hyphen-fields/m-p/1148408#M898018</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Make average ignore NULL, BLANK and hyphen fields</title>
      <link>https://community.qlik.com/t5/QlikView/Make-average-ignore-NULL-BLANK-and-hyphen-fields/m-p/1148409#M898019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=avg({$&amp;lt;[Order Type] = {"Pending'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Hours])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 15:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-average-ignore-NULL-BLANK-and-hyphen-fields/m-p/1148409#M898019</guid>
      <dc:creator />
      <dc:date>2016-07-26T15:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Make average ignore NULL, BLANK and hyphen fields</title>
      <link>https://community.qlik.com/t5/QlikView/Make-average-ignore-NULL-BLANK-and-hyphen-fields/m-p/1148410#M898020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does avg function ignore by default Null, blanks and hyphen fields as sum function does? I mean, I suppose avg function is not taken into account the nulls, blanks and hyphen fields (non-numeric) when performing calculations. Am I right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 15:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-average-ignore-NULL-BLANK-and-hyphen-fields/m-p/1148410#M898020</guid>
      <dc:creator />
      <dc:date>2016-07-26T15:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Make average ignore NULL, BLANK and hyphen fields</title>
      <link>https://community.qlik.com/t5/QlikView/Make-average-ignore-NULL-BLANK-and-hyphen-fields/m-p/1148411#M898021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes avg ignore those troublemakers by default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 16:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-average-ignore-NULL-BLANK-and-hyphen-fields/m-p/1148411#M898021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-26T16:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Make average ignore NULL, BLANK and hyphen fields</title>
      <link>https://community.qlik.com/t5/QlikView/Make-average-ignore-NULL-BLANK-and-hyphen-fields/m-p/1148412#M898022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;the avg function ignores everything that is not number&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 17:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-average-ignore-NULL-BLANK-and-hyphen-fields/m-p/1148412#M898022</guid>
      <dc:creator />
      <dc:date>2016-07-26T17:19:06Z</dc:date>
    </item>
  </channel>
</rss>

