<?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 Count of NULL Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-of-NULL-Values/m-p/296099#M1200586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to count NOT NULL values using Set Analysis. I tried using the following expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({1-$&amp;lt;Sales = {'NULL'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=Count({1-$&amp;lt;Sales = {"NULL"}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=Count({1-$&amp;lt;Sales = {$(=null())}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;None of these gives me the correct result. It is counting all the records, instead of the ones that are just NOT NULL.&lt;/P&gt;&lt;P&gt;With the same expressions, if I use a value like '10000.00', it gives me a correct result.&lt;/P&gt;&lt;P&gt;How do I correct count for the NOT NULL values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Dec 2010 18:55:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-27T18:55:47Z</dc:date>
    <item>
      <title>Count of NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-NULL-Values/m-p/296099#M1200586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to count NOT NULL values using Set Analysis. I tried using the following expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({1-$&amp;lt;Sales = {'NULL'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=Count({1-$&amp;lt;Sales = {"NULL"}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=Count({1-$&amp;lt;Sales = {$(=null())}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;None of these gives me the correct result. It is counting all the records, instead of the ones that are just NOT NULL.&lt;/P&gt;&lt;P&gt;With the same expressions, if I use a value like '10000.00', it gives me a correct result.&lt;/P&gt;&lt;P&gt;How do I correct count for the NOT NULL values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 18:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-NULL-Values/m-p/296099#M1200586</guid>
      <dc:creator />
      <dc:date>2010-12-27T18:55:47Z</dc:date>
    </item>
    <item>
      <title>Count of NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-NULL-Values/m-p/296100#M1200587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, first you have to be sure that you have actual null values and not empty strings or default values, once you have checked on that, you can use a similar expression to the following:&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Sales = {"*"}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;However the most efficient way, is adding counting flags in the script, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load SalesID, Sales, ..., if(isnull(Sales), 0,1) as SalesFlagCount&lt;/P&gt;&lt;P&gt;from Sales;&lt;/P&gt;&lt;P&gt;Then you can actually "sum" the sales instead of counting the values:&lt;/P&gt;&lt;P&gt;sum(SalesFlagCount)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 19:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-NULL-Values/m-p/296100#M1200587</guid>
      <dc:creator />
      <dc:date>2010-12-27T19:15:29Z</dc:date>
    </item>
    <item>
      <title>Count of NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-NULL-Values/m-p/296101#M1200588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do have actual NULL values and Count({$&amp;lt;Sales = {"*"}&amp;gt;} ID) is working.&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 20:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-NULL-Values/m-p/296101#M1200588</guid>
      <dc:creator />
      <dc:date>2010-12-27T20:42:29Z</dc:date>
    </item>
  </channel>
</rss>

