<?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 do i count an empty field? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590802#M219155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need help please with this. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to sum or count fields from an Excel spreadsheet in Qlikview that have no data in the fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adil &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2014 11:47:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-17T11:47:34Z</dc:date>
    <item>
      <title>How do i count an empty field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590802#M219155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need help please with this. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to sum or count fields from an Excel spreadsheet in Qlikview that have no data in the fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adil &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 11:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590802#M219155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-17T11:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do i count an empty field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590803#M219156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is an associated with any field or primary key then you can count easily or if you have sample so provide that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you have null field name Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then counting null value as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(if(Len(Product)=0,Product) it will give you null value count&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And another way is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Count( If( Isnull(Product) = -1, Product) &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 11:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590803#M219156</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-17T11:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do i count an empty field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590804#M219157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a vehicles table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;most is complete although some other fields are input the vehicle is left blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count how many fields were left blank in the Vehicles table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 11:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590804#M219157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-17T11:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do i count an empty field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590805#M219158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple use &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(If(Isnull(Field) or Len(Trim(Field))=0,1))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 11:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590805#M219158</guid>
      <dc:creator />
      <dc:date>2014-04-17T11:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do i count an empty field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590806#M219159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better to create a Flag in your script....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(LEN(TRIM(YourFieldName))=0 or ISNULL(YourFieldName), 1, 0) as Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now Simply use below in any expression to count empty or null field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;COUNT({&amp;lt;Flag = {1}&amp;gt;}YourFIeldName)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(Flag)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 12:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590806#M219159</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-17T12:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do i count an empty field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590807#M219160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in your load script you can use for exemple :&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 12.800000190734863px; font-family: monospace;"&gt;SET &lt;/STRONG&gt;&lt;SPAN style="font-family: monospace; font-size: 12.800000190734863px; color: #666666;"&gt;NullValue &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: monospace; font-size: 12.800000190734863px; background-color: #f7f7f7;"&gt;= 'ND';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: monospace; font-size: 12.800000190734863px; color: blue;"&gt;NullAsValue &lt;/STRONG&gt;&lt;SPAN style="font-family: monospace; font-size: 12.800000190734863px; color: #990000;"&gt;NameOfField&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: monospace; font-size: 12.800000190734863px; background-color: #f7f7f7;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;in your text object count(ND)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 12:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590807#M219160</guid>
      <dc:creator>mambi</dc:creator>
      <dc:date>2014-04-17T12:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do i count an empty field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590808#M219161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depends whether they are loading as blanks or nulls. By default, an empty field from a spreadsheet will load as a blank (assuming that the field is called Vehicle:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count({&amp;lt;Vehicle = {''}&amp;gt;} Vehicle)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its null, then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NullCount(Vehicle)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 12:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590808#M219161</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-04-17T12:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do i count an empty field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590809#M219162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would tend to give default values to blank fields so that they can easily be counted by selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your load have something like Manufacturer which may be blank:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Len(Trim(Manufacturer)) = 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Unknown Manufacturer',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Manufacturer&lt;/P&gt;&lt;P&gt;) as Manufacturer, ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although this seems a big task I always find that it helps later on when developing your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 14:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-count-an-empty-field/m-p/590809#M219162</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2014-04-17T14:33:39Z</dc:date>
    </item>
  </channel>
</rss>

