<?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: Counting Null Values in a data set based on two variables. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823011#M1017528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i throw one more at ya?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same data trying to count records that have null values in the [Date_Closed] field and a [due_date] that is less than today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use one of the examples you provided be before.&amp;nbsp; Just adding in the extra variable.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;[date_closed]-={"NULL"}&amp;gt;}&amp;nbsp; [Due Date]&amp;lt; today())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 21:30:38 GMT</pubDate>
    <dc:creator>leale1997</dc:creator>
    <dc:date>2015-03-30T21:30:38Z</dc:date>
    <item>
      <title>Counting Null Values in a data set based on two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823006#M1017523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have read variations of what I am trying to do but have not been able to acclimate any solution for my specific needs.&amp;nbsp; Pulling my hair out because it is actually very simple.&amp;nbsp; I have a data set that has two fields "Record Id" and "Date Closed".&amp;nbsp; I want to code a text object to view a one number answer that will represent how many [Date Closed] fields contain Null Values.&amp;nbsp; In order to get the count correct I need the formula to count based on Distinct [Record Id].&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are a couple of the variations I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=NullCount({&amp;lt;[date_closed]&amp;gt;} Distinct [Record ID]) &lt;SPAN style="color: #ff0000;"&gt;(Didn't work looks for null values in both fields)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=NullCount({&amp;lt;[date_closed]&amp;gt;} and Distinct [Record ID]) &lt;SPAN style="color: #ff0000; font-size: 13.3333330154419px;"&gt;(Didn't work returns no value)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 19:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823006#M1017523</guid>
      <dc:creator>leale1997</dc:creator>
      <dc:date>2015-03-30T19:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Null Values in a data set based on two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823007#M1017524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count({$ -&amp;lt;[Date closed]={'*'}&amp;gt;} [Record ID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 19:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823007#M1017524</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-30T19:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Null Values in a data set based on two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823008#M1017525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason that is still not working.&amp;nbsp; I plugged it in and it is returning a 0 count.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could be because I am a novice and not understanding the formula.&amp;nbsp; Or not explaining my data set well.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data set looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date_Closed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Record_ID&lt;/P&gt;&lt;P&gt;1/01/2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2/15/2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;2/15/2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;/P&gt;&lt;P&gt;null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initial formula I used was &lt;STRONG&gt;= 'Open'&amp;nbsp; &amp;amp; NullCount ([date_closed])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Instead of '2' it returned like 2000.&amp;nbsp; Counting duplicates somewhere.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am trying to cut out the duplicate count by using the unique Record_ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 19:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823008#M1017525</guid>
      <dc:creator>leale1997</dc:creator>
      <dc:date>2015-03-30T19:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Null Values in a data set based on two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823009#M1017526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with (if(Date_Close.......&amp;nbsp;&amp;nbsp;&amp;nbsp; to make true null)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;c:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load if(Date_Closed='null',null(),Date_Closed) as Date_Closed, Record_ID inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date_Closed ,&amp;nbsp;&amp;nbsp;&amp;nbsp; Record_ID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/01/2015&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2/15/2015&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2/15/2015&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and expression is &lt;/P&gt;&lt;P&gt;count({$ - &amp;lt;[Date_Closed]={'*'}&amp;gt;} &lt;STRONG&gt;distinct&lt;/STRONG&gt; [Record_ID])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result is &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;count({$ - &amp;lt;[Date_Closed]={'*'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;[Record_ID])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result is &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 20:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823009#M1017526</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-30T20:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Null Values in a data set based on two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823010#M1017527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much.&amp;nbsp; After I read your suggestion to use the Load statement I realized the problem was in the data load.&amp;nbsp; Duplicate field names in other tables were causing the count to be off.&amp;nbsp; Always the easy obvious thing that gets over looked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 20:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823010#M1017527</guid>
      <dc:creator>leale1997</dc:creator>
      <dc:date>2015-03-30T20:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Null Values in a data set based on two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823011#M1017528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i throw one more at ya?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same data trying to count records that have null values in the [Date_Closed] field and a [due_date] that is less than today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use one of the examples you provided be before.&amp;nbsp; Just adding in the extra variable.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;[date_closed]-={"NULL"}&amp;gt;}&amp;nbsp; [Due Date]&amp;lt; today())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 21:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Null-Values-in-a-data-set-based-on-two-variables/m-p/823011#M1017528</guid>
      <dc:creator>leale1997</dc:creator>
      <dc:date>2015-03-30T21:30:38Z</dc:date>
    </item>
  </channel>
</rss>

