<?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: How to get record count for null (blank or missing) ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454886#M435009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works as expected. Thanks a million!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jan 2018 16:52:22 GMT</pubDate>
    <dc:creator>baylor2016</dc:creator>
    <dc:date>2018-01-18T16:52:22Z</dc:date>
    <item>
      <title>How to get record count for null (blank or missing) ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454877#M435000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After reviewing many posts related to null(missing, blank) fields, I still cannot figure out how to get the correct counts for field whose value is null, missing or blank.&amp;nbsp; can get the non-null counts by using =COUNT( {&amp;lt;Enddate={*}&amp;gt;} PAT_ID). For count of null field I used =COUNT( {&amp;lt;Enddate-={*}&amp;gt;} PAT_ID), it always return 0. I tried many different methods such as =COUNT( {&amp;lt;Enddate-={'-'}&amp;gt;} PAT_ID), still cannot get it right. Please advice. The sample project is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Longmatch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 20:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454877#M435000</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2018-01-11T20:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get record count for null (blank or missing) ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454878#M435001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=COUNT( {&amp;lt;PAT_ID= {"=Len(Trim(Enddate)) = 0"}&amp;gt;} PAT_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 20:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454878#M435001</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-11T20:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get record count for null (blank or missing) ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454879#M435002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. It works. By the way, why =COUNT( {&amp;lt;Enddate-={*}&amp;gt;} PAT_ID) is not working? I saw most people recommend this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 21:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454879#M435002</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2018-01-11T21:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get record count for null (blank or missing) ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454880#M435003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set Analysis only work on a non-null cell value... wherever Enddate is null, it won't work.... You can create a flag in the script as an alternate solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(Enddate)) = 0, 1, 0) as EnddateNullFlag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({&amp;lt;EnddateNullFlag = {'1'}&amp;gt;} PAT_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 00:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454880#M435003</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-12T00:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get record count for null (blank or missing) ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454881#M435004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the expression you recommended in Textbox and Straight table in the same sample project, but it behaves differently. The number returned is not what I expected. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=COUNT( {&amp;lt;PAT_ID= {"=Len(Trim(Enddate)) = 0"}&amp;gt;} PAT_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please refer to the attachment for details. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Longmatch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 21:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454881#M435004</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2018-01-17T21:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get record count for null (blank or missing) ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454882#M435005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are not doing a count, you are doing a distinct count.... since distinct count depends on dimension (startdate in this case)... table shows more than 3....what do you expect to see in straight table or text box object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 22:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454882#M435005</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-17T22:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get record count for null (blank or missing) ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454883#M435006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to get the count of patients whose address have no endDate.&amp;nbsp; It sounds simple, but it is not easy to understand. Thank you for your always helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 22:07:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454883#M435006</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2018-01-17T22:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get record count for null (blank or missing) ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454884#M435007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Do you have time to review my sample app? What is the problem? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 16:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454884#M435007</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2018-01-18T16:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get record count for null (blank or missing) ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454885#M435008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='No enddate records: ' &amp;amp; COUNT(DISTINCT Aggr(If(Len(Trim(Enddate)) = 0, PAT_ID), PAT_ID, CITY, Enddate))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 16:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454885#M435008</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-18T16:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get record count for null (blank or missing) ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454886#M435009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works as expected. Thanks a million!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 16:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454886#M435009</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2018-01-18T16:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get record count for null (blank or missing) ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454887#M435010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your helps to solve my problem. Do you know why &lt;STRONG&gt;=COUNT( {&amp;lt;PAT_ID= {"=Len(Trim(Enddate)) = 0"}&amp;gt;} PAT_ID) &lt;/STRONG&gt; does not work in straight table? Just curious. Thanks as always.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 22:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454887#M435010</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2018-01-19T22:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get record count for null (blank or missing) ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454888#M435011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you see the Aggr() function it needed to use three dimensions rather than just PAT_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT Aggr(If(Len(Trim(Enddate)) = 0, PAT_ID), PAT_ID, CITY, Enddate))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, basically what you are testing is not just against PAT_ID like in the below expression&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;PAT_ID&lt;/SPAN&gt;= {"=Len(Trim(Enddate)) = 0"}&amp;gt;} PAT_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But against, three fields like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;PAT_ID&amp;amp;CITY&amp;amp;Enddate&lt;/SPAN&gt; = {"=Len(Trim(Enddate)) = 0"}&amp;gt;} PAT_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the above syntax is not right, so that is why you cannot do this is set analysis unless you create a new field which combines the three field into one in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber(&lt;SPAN style="color: #ff0000;"&gt;PAT_ID&amp;amp;CITY&amp;amp;Enddate&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;) as NewField...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now you can use this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({&amp;lt;&lt;STRONG style="color: #ff0000;"&gt;NewField &lt;/STRONG&gt;= {"=Len(Trim(Enddate)) = 0"}&amp;gt;} PAT_ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jan 2018 18:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-record-count-for-null-blank-or-missing/m-p/1454888#M435011</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-20T18:16:24Z</dc:date>
    </item>
  </channel>
</rss>

