<?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 values different of empty in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-values-different-of-empty/m-p/263974#M99265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kelly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although this will work, in case you know you will find some values in one field empty/null/missing, I'd use&amp;nbsp; flag for them and sum the number of flags in your records in the expression. In my experience, and depending on the model and the data set, this usually performs better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(Field) = 0, 1, 0) AS NullFlag&lt;/P&gt;&lt;P&gt;FROM Source;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum(NullFlag)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jun 2011 22:05:44 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-06-03T22:05:44Z</dc:date>
    <item>
      <title>Count values different of empty</title>
      <link>https://community.qlik.com/t5/QlikView/Count-values-different-of-empty/m-p/263972#M99263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I count all values in an excel collumn&amp;nbsp; different of empty?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 20:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-values-different-of-empty/m-p/263972#M99263</guid>
      <dc:creator />
      <dc:date>2011-06-03T20:52:58Z</dc:date>
    </item>
    <item>
      <title>Count values different of empty</title>
      <link>https://community.qlik.com/t5/QlikView/Count-values-different-of-empty/m-p/263973#M99264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you load from excel, empty cells will be considered as nulls. &lt;/P&gt;&lt;P&gt;Count(field) should work fine for your case. &lt;/P&gt;&lt;P&gt;Do you have a sample where it doesn't work? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 21:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-values-different-of-empty/m-p/263973#M99264</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-03T21:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count values different of empty</title>
      <link>https://community.qlik.com/t5/QlikView/Count-values-different-of-empty/m-p/263974#M99265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kelly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although this will work, in case you know you will find some values in one field empty/null/missing, I'd use&amp;nbsp; flag for them and sum the number of flags in your records in the expression. In my experience, and depending on the model and the data set, this usually performs better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(Field) = 0, 1, 0) AS NullFlag&lt;/P&gt;&lt;P&gt;FROM Source;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum(NullFlag)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 22:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-values-different-of-empty/m-p/263974#M99265</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-06-03T22:05:44Z</dc:date>
    </item>
  </channel>
</rss>

