<?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: Incorrect Null count in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incorrect-Null-count-in-straight-table/m-p/1030106#M347888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this would still give you the correct number when you clear, but try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT{$&amp;lt;REQUEST_ID = {"=NullCount(TASK_FACILITY)&amp;gt;0"}&amp;gt;*&amp;lt;Flag_NullTaskSeq = {'*'}&amp;gt;}REQUEST_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Mar 2016 22:56:31 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-08T22:56:31Z</dc:date>
    <item>
      <title>Incorrect Null count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Null-count-in-straight-table/m-p/1030104#M347886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue with counting the number of rows containing Null value.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;I'm trying to count the number of DISTINCT projects that have NULL values for the "Facility" field and a count of projects with "End dates" in the past. Not all projects have null values for this field and some projects might have more than one row with null value for the field. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;If I create two different straight tables, one for end dates in the past and one for missing facilities, I get the correct count.&amp;nbsp; However, I cannot get both fields in a single straight table because the missing facilities count is incorrect then.&amp;nbsp; I am attaching a sample file with the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to solve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 16:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Null-count-in-straight-table/m-p/1030104#M347886</guid>
      <dc:creator>clondono</dc:creator>
      <dc:date>2016-03-08T16:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Null count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Null-count-in-straight-table/m-p/1030105#M347887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 22:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Null-count-in-straight-table/m-p/1030105#M347887</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2016-03-08T22:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Null count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Null-count-in-straight-table/m-p/1030106#M347888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this would still give you the correct number when you clear, but try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT{$&amp;lt;REQUEST_ID = {"=NullCount(TASK_FACILITY)&amp;gt;0"}&amp;gt;*&amp;lt;Flag_NullTaskSeq = {'*'}&amp;gt;}REQUEST_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 22:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Null-count-in-straight-table/m-p/1030106#M347888</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-08T22:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Null count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Null-count-in-straight-table/m-p/1030107#M347889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny, you are awesome!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution works, also I found a solution from a post you responded a couple of minutes ago and I applied to this issue and it worked as well (&lt;A href="https://community.qlik.com/thread/208690"&gt;Count number&lt;/A&gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression I was using from the alternative solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(If(NullCount(TASK_FACILITY)&amp;gt;0, 1, 0),REQUEST_ID, [TASK_FACILITY]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 23:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Null-count-in-straight-table/m-p/1030107#M347889</guid>
      <dc:creator>clondono</dc:creator>
      <dc:date>2016-03-08T23:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Null count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Null-count-in-straight-table/m-p/1030108#M347890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, I am glad I was able to help. But just so you know, prefer using Set Analysis over Aggr() wherever possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 23:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Null-count-in-straight-table/m-p/1030108#M347890</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-08T23:24:21Z</dc:date>
    </item>
  </channel>
</rss>

