<?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: count null and non null values problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-null-and-non-null-values-problem/m-p/966139#M331162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post a sample plz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2015 09:31:31 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2015-10-13T09:31:31Z</dc:date>
    <item>
      <title>count null and non null values problem</title>
      <link>https://community.qlik.com/t5/QlikView/count-null-and-non-null-values-problem/m-p/966138#M331161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi im trying to count all "LanID" where they have 2 or less then 2 " DocName"&amp;nbsp; and the null values for those that dont have any "DocName"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(DISTINCT {&amp;lt;LanID = {"=count(distinct DocName)&amp;lt;=2"}&amp;gt;}LanID)&lt;/P&gt;&lt;P&gt;+&amp;nbsp; count(DISTINCT LanID) -count(DISTINCT {&amp;lt;DocName = {"*"}&amp;gt;}LanID)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when im trying to implement a YTD , MTYD and LYTD to this, it gets tricky,&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All LanIDs that have &amp;lt;=2 DocNames including 0 and null value is = 198 LanIDs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i press the current Year = 136 LanIDs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i press current Year and choose Oct and Sep = 146 ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How&amp;nbsp; could this be ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with NullCount and adding the LanIDs manually, but wont work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Help would be much appriciated .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 09:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-null-and-non-null-values-problem/m-p/966138#M331161</guid>
      <dc:creator />
      <dc:date>2015-10-13T09:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: count null and non null values problem</title>
      <link>https://community.qlik.com/t5/QlikView/count-null-and-non-null-values-problem/m-p/966139#M331162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post a sample plz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 09:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-null-and-non-null-values-problem/m-p/966139#M331162</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2015-10-13T09:31:31Z</dc:date>
    </item>
  </channel>
</rss>

