<?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 How to Exclude Null Value from Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Exclude-Null-Value-from-Count/m-p/1081605#M360388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably something easy, but I cannot figure it out. I have an app with several count functions - where I am counting the whole&amp;nbsp; universe of distinct Agency IDs in order to eventually calculate penetration. However, some records lack an 'Agency Type' field value and so it is null. So, when I count the 'Types' it is showing Null as an option with a count of 1. Here's what I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/122357_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Formula for the Count Universe expression is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;{1}&lt;SPAN style="color: #800000;"&gt;[AGENCY_ID]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though some records do not have an Agency Type (i.e. it is Null), I don't want to count them. I want to count only ALL Distinct Agency IDs in the data universe as long as they're not Null. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2016 21:20:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-04-21T21:20:27Z</dc:date>
    <item>
      <title>How to Exclude Null Value from Count</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Exclude-Null-Value-from-Count/m-p/1081605#M360388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably something easy, but I cannot figure it out. I have an app with several count functions - where I am counting the whole&amp;nbsp; universe of distinct Agency IDs in order to eventually calculate penetration. However, some records lack an 'Agency Type' field value and so it is null. So, when I count the 'Types' it is showing Null as an option with a count of 1. Here's what I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/122357_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Formula for the Count Universe expression is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;{1}&lt;SPAN style="color: #800000;"&gt;[AGENCY_ID]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though some records do not have an Agency Type (i.e. it is Null), I don't want to count them. I want to count only ALL Distinct Agency IDs in the data universe as long as they're not Null. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 21:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Exclude-Null-Value-from-Count/m-p/1081605#M360388</guid>
      <dc:creator />
      <dc:date>2016-04-21T21:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude Null Value from Count</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Exclude-Null-Value-from-Count/m-p/1081606#M360389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select the "Exclude Null Values" checkbox on the DImensions tab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 21:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Exclude-Null-Value-from-Count/m-p/1081606#M360389</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-04-21T21:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude Null Value from Count</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Exclude-Null-Value-from-Count/m-p/1081607#M360390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, duh! Works like a charm. There are so many little nuances, it's hard to keep it all straight. Thanks, Rob!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 21:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Exclude-Null-Value-from-Count/m-p/1081607#M360390</guid>
      <dc:creator />
      <dc:date>2016-04-21T21:33:41Z</dc:date>
    </item>
  </channel>
</rss>

