<?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 Counting NULL in a pivot chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-NULL-in-a-pivot-chart/m-p/175019#M43618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;This question appears on other threads but none of the proposed solutions work (for example, see thread: &lt;A href="https://community.qlik.com/forums/t/24728.aspx"&gt;http://community.qlik.com/forums/t/24728.aspx&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;All I want to do is count the number of NULL values from a field in a pivot column. Intuitively, this is what I would do:&lt;/P&gt;&lt;H4&gt;COUNT( { $ &amp;lt; Transaction = {} &amp;gt; } ID)&lt;/H4&gt;&lt;P&gt;This does not work. The stats box doesn't show any NULLs but another thread suggests that stats boxes are generally not to be trusted (especially with NULLs in version 9).&lt;/P&gt;&lt;P&gt;Other threads suggest the following. None of these work for me.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count({$-&amp;lt;Transaction={}&amp;gt;} ID)&lt;BR /&gt;Count({$&amp;lt;Transaction= {$(=null())}&amp;gt;} ID)&lt;BR /&gt; Count({$&amp;lt;isnull(Transaction)= {'-1'}&amp;gt;} ID)&lt;BR /&gt; COUNT({$-&amp;lt;Transaction = -{}&amp;gt;} ID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;My workaround is to create a separate column of data on load in the script, i.e. IF(ISNULL(TransactionID), 0, 1) AS TransactionIDIsNull and then count the 1s and 0s.&lt;/P&gt;&lt;P&gt;This works but I was hoping for a tidier solution.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;BR /&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Nov 2010 22:19:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-07T22:19:34Z</dc:date>
    <item>
      <title>Counting NULL in a pivot chart</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-NULL-in-a-pivot-chart/m-p/175019#M43618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;This question appears on other threads but none of the proposed solutions work (for example, see thread: &lt;A href="https://community.qlik.com/forums/t/24728.aspx"&gt;http://community.qlik.com/forums/t/24728.aspx&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;All I want to do is count the number of NULL values from a field in a pivot column. Intuitively, this is what I would do:&lt;/P&gt;&lt;H4&gt;COUNT( { $ &amp;lt; Transaction = {} &amp;gt; } ID)&lt;/H4&gt;&lt;P&gt;This does not work. The stats box doesn't show any NULLs but another thread suggests that stats boxes are generally not to be trusted (especially with NULLs in version 9).&lt;/P&gt;&lt;P&gt;Other threads suggest the following. None of these work for me.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count({$-&amp;lt;Transaction={}&amp;gt;} ID)&lt;BR /&gt;Count({$&amp;lt;Transaction= {$(=null())}&amp;gt;} ID)&lt;BR /&gt; Count({$&amp;lt;isnull(Transaction)= {'-1'}&amp;gt;} ID)&lt;BR /&gt; COUNT({$-&amp;lt;Transaction = -{}&amp;gt;} ID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;My workaround is to create a separate column of data on load in the script, i.e. IF(ISNULL(TransactionID), 0, 1) AS TransactionIDIsNull and then count the 1s and 0s.&lt;/P&gt;&lt;P&gt;This works but I was hoping for a tidier solution.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;BR /&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Nov 2010 22:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-NULL-in-a-pivot-chart/m-p/175019#M43618</guid>
      <dc:creator />
      <dc:date>2010-11-07T22:19:34Z</dc:date>
    </item>
    <item>
      <title>Counting NULL in a pivot chart</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-NULL-in-a-pivot-chart/m-p/175020#M43619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather question than an answer:&lt;BR /&gt;Why use set analysis? Did you try this:&lt;BR /&gt;count(if(isnull(Transaction),ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 00:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-NULL-in-a-pivot-chart/m-p/175020#M43619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-08T00:10:49Z</dc:date>
    </item>
    <item>
      <title>Counting NULL in a pivot chart</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-NULL-in-a-pivot-chart/m-p/175021#M43620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick reply. That does indeed work.&lt;/P&gt;&lt;P&gt;However, I simplified the problem in my post. My actual expression is of the form:&lt;/P&gt;&lt;P&gt;count ( { $ &amp;lt; Region = {}, var1 = {val1}, var2 = {val2} &amp;gt; } )&lt;/P&gt;&lt;P&gt;So I have other set analyses going on. I was after a set analysis-related answer, if at all possible.&lt;/P&gt;&lt;P&gt;With thanks&lt;BR /&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 00:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-NULL-in-a-pivot-chart/m-p/175021#M43620</guid>
      <dc:creator />
      <dc:date>2010-11-08T00:18:16Z</dc:date>
    </item>
    <item>
      <title>Counting NULL in a pivot chart</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-NULL-in-a-pivot-chart/m-p/175022#M43621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;BR /&gt;in this case, I'd be looking for a solition in this direction, combining the above expression with set analysis:&lt;BR /&gt;count({$&amp;lt;&lt;EM&gt;other set analysis conditions&lt;/EM&gt;&amp;gt;} if(isnull(Transaction),ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 01:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-NULL-in-a-pivot-chart/m-p/175022#M43621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-08T01:09:46Z</dc:date>
    </item>
    <item>
      <title>Counting NULL in a pivot chart</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-NULL-in-a-pivot-chart/m-p/175023#M43622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked. Fantastic. Thanks very much indeed !!! &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 01:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-NULL-in-a-pivot-chart/m-p/175023#M43622</guid>
      <dc:creator />
      <dc:date>2010-11-08T01:19:30Z</dc:date>
    </item>
  </channel>
</rss>

