<?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: Help with NullCount combined with If Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-NullCount-combined-with-If-Function/m-p/411222#M488004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;How about the following?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=count(if(Chargeable = 'Yes' and len([Change Control Ref]) = 0, CCR Reference))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;You could use the insull() function, too, but I prefer the len() function since it treats empty cells as if they were null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=count(if(Chargeable = 'Yes' and isnull([Change Control Ref]), CCR Reference))&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Karl&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2013 17:51:34 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2013-02-06T17:51:34Z</dc:date>
    <item>
      <title>Help with NullCount combined with If Function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-NullCount-combined-with-If-Function/m-p/411221#M488003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikview Community, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would very much appreciate help with the following quandry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to count null values in a field, with the added caveat of an If statement in another field. &lt;/P&gt;&lt;P&gt;To give you an idea of the data:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 655px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl24" height="17" width="88"&gt;CCR Reference&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none;" width="175"&gt;Date Customer Approved SoW&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none;" width="98"&gt;POB_Date&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none;" width="98"&gt;Chargeable&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none;" width="98"&gt;Budget Code&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none;" width="98"&gt;Change Control Ref&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top: medium none;"&gt;56644&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;41162&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;19/09/2012&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;NO259&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;CC975&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top: medium none;"&gt;59893&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;41150&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;19/09/2012&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;PN190 1906&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;CC973&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top: medium none;"&gt;59895&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;41117&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top: medium none;"&gt;59914&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;41212&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;21/11/2012&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;ET100 2600&amp;nbsp; ST001&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top: medium none;"&gt;59923&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;41106&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;66236&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top: medium none;"&gt;59931&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;41128&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;19/09/2012&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;ET100 2600 ST007&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top: medium none;"&gt;59971&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;41156&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;19/09/2012&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;CA051 1400&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top: medium none;"&gt;60413&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;41152&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;21/11/2012&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;PL012&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top: medium none;"&gt;60415&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;41134&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;19/09/2012&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;SB013 1903&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top: medium none;"&gt;60498&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;41159&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;19/10/2012&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;HR413 2104&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top: medium none;"&gt;62085&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;41159&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;19/10/2012&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;HR413&lt;/TD&gt;&lt;TD class="xl25" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to count the records where the 'Chargeable' field is Yes, but the 'Change Control Ref' is null, or blank. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried various iterations, including the following, none of which work:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=count(if(Chargeable = 'Yes' and [Change Control Ref] &amp;gt; 0, CCR Reference))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=NullCount(distinct if(Chargeable = 'Yes', [Change Control Ref])) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many thanks, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Frances&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 17:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-NullCount-combined-with-If-Function/m-p/411221#M488003</guid>
      <dc:creator />
      <dc:date>2013-02-06T17:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with NullCount combined with If Function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-NullCount-combined-with-If-Function/m-p/411222#M488004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;How about the following?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=count(if(Chargeable = 'Yes' and len([Change Control Ref]) = 0, CCR Reference))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;You could use the insull() function, too, but I prefer the len() function since it treats empty cells as if they were null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=count(if(Chargeable = 'Yes' and isnull([Change Control Ref]), CCR Reference))&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Karl&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 17:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-NullCount-combined-with-If-Function/m-p/411222#M488004</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2013-02-06T17:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with NullCount combined with If Function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-NullCount-combined-with-If-Function/m-p/411223#M488005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karl! You are brilliant! Thank you so much for fixing this for me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your first option worked first time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frances&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 12:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-NullCount-combined-with-If-Function/m-p/411223#M488005</guid>
      <dc:creator />
      <dc:date>2013-02-07T12:45:43Z</dc:date>
    </item>
  </channel>
</rss>

