<?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: Return count where field is blank in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643034#M1085447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this will handle both blanks and nulls:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT(DISTINCT {$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;UserName&lt;/SPAN&gt;={"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=len(trim(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Firm&lt;/SPAN&gt;))=0&lt;/SPAN&gt;"}&amp;gt;}UserName)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&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/"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 16:46:13 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2014-06-06T16:46:13Z</dc:date>
    <item>
      <title>Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643024#M1085437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to do a unique count of UserNames where the Firm field is blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this, but it didn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT(DISTINCT {$&amp;lt;Firm-={'*'}&amp;gt;}UserName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 15:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643024#M1085437</guid>
      <dc:creator />
      <dc:date>2014-06-06T15:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643025#M1085438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Count({$&amp;lt;Firm={' '}&amp;gt;}Distinct UserName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 15:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643025#M1085438</guid>
      <dc:creator>venkatg6759</dc:creator>
      <dc:date>2014-06-06T15:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643026#M1085439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor244"&gt;&lt;/A&gt;&lt;A name="NullCount"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;NullCount(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[{set_expression}][ &lt;SPAN class="Bold"&gt;distinct&lt;/SPAN&gt; ] [ &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; [&amp;lt;fld {, fld}&amp;gt;]] expression&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the aggregated count of NULL values from &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; or &lt;SPAN class="Italic"&gt;field&lt;/SPAN&gt; iterated over the chart dimension(s). &lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P class="syntax"&gt;You might try the nullcount function. The above was taken from QlikView help file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 15:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643026#M1085439</guid>
      <dc:creator />
      <dc:date>2014-06-06T15:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643027#M1085440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This didn't work. It returned 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 16:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643027#M1085440</guid>
      <dc:creator />
      <dc:date>2014-06-06T16:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643028#M1085441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are your nulls formatted?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 16:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643028#M1085441</guid>
      <dc:creator />
      <dc:date>2014-06-06T16:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643029#M1085442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a text field, which is totally blank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 16:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643029#M1085442</guid>
      <dc:creator />
      <dc:date>2014-06-06T16:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643030#M1085443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried =count(distinct {$&amp;lt;Firm = {'',' ',null}&amp;gt;} UserName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 16:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643030#M1085443</guid>
      <dc:creator />
      <dc:date>2014-06-06T16:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643031#M1085444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think my problem may be solved another way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The root issue is that this expression does not count UserNames where the Firm field is blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT(DISTINCT {$&amp;lt;Firm-={'ACME','*TEST*'}&amp;gt;}UserName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to alter this to ensure it includes UserName where the Firm field is blank, whilst also excluding Firms called ACME or with TEST&amp;nbsp; in them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 16:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643031#M1085444</guid>
      <dc:creator />
      <dc:date>2014-06-06T16:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643032#M1085445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe in your load script, use something like if(Firm = ' ', null, Firm) as Firm? so then all blank values are associated with nulls, then you can use nullcount?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 16:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643032#M1085445</guid>
      <dc:creator />
      <dc:date>2014-06-06T16:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643033#M1085446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=COUNT(DISTINCT {$-&amp;lt;Firm={'*'}&amp;gt;}UserName)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 16:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643033#M1085446</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-06-06T16:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643034#M1085447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this will handle both blanks and nulls:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT(DISTINCT {$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;UserName&lt;/SPAN&gt;={"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=len(trim(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Firm&lt;/SPAN&gt;))=0&lt;/SPAN&gt;"}&amp;gt;}UserName)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&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/"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 16:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643034#M1085447</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-06-06T16:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643035#M1085448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jacob. Would I have to adapt my expression? Or would the null values be counted automatically?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 16:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643035#M1085448</guid>
      <dc:creator />
      <dc:date>2014-06-06T16:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Return count where field is blank</title>
      <link>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643036#M1085449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you could use NullCount(distinct UserName), but you could also try Rob's solutions. They might be simpler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 16:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-count-where-field-is-blank/m-p/643036#M1085449</guid>
      <dc:creator />
      <dc:date>2014-06-06T16:51:41Z</dc:date>
    </item>
  </channel>
</rss>

