<?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 Where Field Value is Null Not Working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361528#M417226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds good. Glad it helped you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jun 2017 21:05:09 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2017-06-13T21:05:09Z</dc:date>
    <item>
      <title>Count Where Field Value is Null Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361522#M417220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;Currently developing a matrix report to check values from various tables to determine if a value is present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the methodology to count where field values are null by using set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp; COUNT({$&amp;lt;[FIELD]&lt;STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;-=&lt;/SPAN&gt;{''}&lt;/STRONG&gt;&amp;gt;}DISTINCT ([DIMENSION FIELD]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine when the FIELD contains at least one value (even if it is not associated).&amp;nbsp; When the FIELD does not contain any value, this does not work.&amp;nbsp; I receive just a distinct count of the dimension field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong here?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 14:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361522#M417220</guid>
      <dc:creator>aointl_jelee</dc:creator>
      <dc:date>2017-06-13T14:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count Where Field Value is Null Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361523#M417221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be clear, I am dealing with Missing Values..&amp;nbsp; When there is no record for the table which has the field I am checking for, I am returned with a distinct count of the dimension field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 14:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361523#M417221</guid>
      <dc:creator>aointl_jelee</dc:creator>
      <dc:date>2017-06-13T14:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count Where Field Value is Null Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361524#M417222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;Count({&amp;lt;DIMENSION={"=Len(Trim(FIELD))=0"}&amp;gt;} DIMENSION)&lt;/P&gt;&lt;P&gt;However this may not work depending on Your Data Model.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 16:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361524#M417222</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-13T16:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count Where Field Value is Null Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361525#M417223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Antonio,&lt;/P&gt;&lt;P&gt;Thank you for your response.&amp;nbsp; I am familiar with this method of checking if a field is null or not null as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, like you suggested, my data model does not have any possible value for this field, yet.&amp;nbsp; These are new columns added to the database table, which have yet to be populated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 17:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361525#M417223</guid>
      <dc:creator>aointl_jelee</dc:creator>
      <dc:date>2017-06-13T17:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count Where Field Value is Null Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361526#M417224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you use a flag in your script like: I am not sure if this works just try and let us know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(ISNULL(FieldName) = -1, 0, 1)&amp;nbsp; AS FieldValueFlag &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Len(Trim(FieldName)) = 0, 0, 1) AS FieldValueFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use Count() Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;FieldValueFlag = {0} &amp;gt;}FieldName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 20:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361526#M417224</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-13T20:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count Where Field Value is Null Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361527#M417225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishwarath,&lt;/P&gt;&lt;P&gt;That is exactly what I did this afternoon.&amp;nbsp; Thank you for the correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up having to prepopulate the transactional table with my key field, then left join the transactional data back to this table so that I would have the ability to create the flags with proper association.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;-Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 20:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361527#M417225</guid>
      <dc:creator>aointl_jelee</dc:creator>
      <dc:date>2017-06-13T20:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count Where Field Value is Null Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361528#M417226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds good. Glad it helped you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 21:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Value-is-Null-Not-Working/m-p/1361528#M417226</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-13T21:05:09Z</dc:date>
    </item>
  </channel>
</rss>

