<?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: Null count in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Null-count-in-straight-table/m-p/1087647#M362003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Aggr() function may well help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Mar 2016 22:56:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-03T22:56:19Z</dc:date>
    <item>
      <title>Null count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Null-count-in-straight-table/m-p/1087644#M362000</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’m trying to get a COUNT of DISTINCT Projects with Tasks missing Facility Name. &lt;/P&gt;&lt;P&gt;I can get then listed correctly in the “Task Missing Facility Name” table using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;TASK_FACILITY&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))=0, '**UNASSIGNED**', &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;TASK_FACILITY&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It puts the **UNASSIGNED** text for TASK-FACILITY for all tasks missing the facility name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The issue is when I try to “count” the number of projects with tasks missing facility names.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I’m using this formula:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Flag_NullTaskSeq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;"=NullCount(TASK_FACILITY)&amp;gt;0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;REQUEST_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Which seems to work fine, but for some strange reason it doesn’t return the correct value for some PMs.&lt;/P&gt;&lt;P&gt;For example, no filters applied the PM listed below (D) is showing 1 project missing facility name ( which it is not correct).&amp;nbsp; If I select D as the responsible PM it changes to 0 which is the correct value. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;IMG __jive_id="116880" alt="i.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116880_i.jpg" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Any ideas how to handle these null counts?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Carlos Londono&#xD;
&#xD;
I'm including a sample file with 3 tables, the 2 upper tables return the correct results. When I combine the fields in the lower table (to export to NPrinting for a Pivot chart) one of the fields returns the wrong count.  Any ideas on how to solve this issue?&#xD;
&#xD;
Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 20:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-count-in-straight-table/m-p/1087644#M362000</guid>
      <dc:creator>clondono</dc:creator>
      <dc:date>2016-03-03T20:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Null count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Null-count-in-straight-table/m-p/1087645#M362001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Flag_NullTaskSeq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;"=Len(Trim((TASK_FACILITY))&amp;gt;0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;REQUEST_ID&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-count-in-straight-table/m-p/1087645#M362001</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-03T21:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Null count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Null-count-in-straight-table/m-p/1087646#M362002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny using the expression you suggested returns zero for all counts&lt;/P&gt;&lt;P&gt;&lt;IMG alt="i.jpg" class="jive-image image-1" height="148" src="https://community.qlik.com/legacyfs/online/116918_i.jpg" style="height: 148.117px; width: 117px;" width="117" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-count-in-straight-table/m-p/1087646#M362002</guid>
      <dc:creator>clondono</dc:creator>
      <dc:date>2016-03-03T21:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Null count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Null-count-in-straight-table/m-p/1087647#M362003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Aggr() function may well help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 22:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-count-in-straight-table/m-p/1087647#M362003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-03T22:56:19Z</dc:date>
    </item>
  </channel>
</rss>

