<?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 values in a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263445#M496310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No its not working either. It is so strange because if i put the expression:&lt;/P&gt;&lt;P&gt;IF(ISNULL(INVOICEDATE)='-1','NO INVOICE'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it knows that it is empty and shows the NO INVOICE where there really is not any invoice, but then when is put the same condition in the the count function, it ignores all in the count&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Nov 2011 05:06:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-29T05:06:04Z</dc:date>
    <item>
      <title>Counting null values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263437#M496302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am trying to use the count function to count the number of orders that do not have null value in its invoice date. I have tried a lot of what was already on the community like:&lt;/P&gt;&lt;P&gt;=cout(distinct if(len(invdate)&amp;gt;0, key));&lt;/P&gt;&lt;P&gt;= count( {$} KEY)&lt;/P&gt;&lt;P&gt;= count(distinct if(isnull(INVDATE)=0, key));&lt;/P&gt;&lt;P&gt;I am running out of ideas. Yet if I use the expression: = IF(INVDATE='', NOINVOICE), that works well proving that the QV identifies the missing date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone?&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 03:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263437#M496302</guid>
      <dc:creator />
      <dc:date>2011-11-29T03:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Counting null values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263438#M496303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi adjacentrock, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(distinct if(len(trim(invdate))&amp;gt;0, invdate)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested, it works for me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trim() is important in this expression, because even if the invdate only contains some spaces, the len() will return a nonzero value. So trim() removes the spaces in empty invdate if it has any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 03:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263438#M496303</guid>
      <dc:creator />
      <dc:date>2011-11-29T03:57:22Z</dc:date>
    </item>
    <item>
      <title>Counting null values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263439#M496304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks but it still doesnt work, also, the heading of my question is not really correct as I am trying to count records that have null values in their invoice date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 04:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263439#M496304</guid>
      <dc:creator />
      <dc:date>2011-11-29T04:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Counting null values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263440#M496305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Can you upload your data file with merely the invoice date field? Just a fraction should be fine. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 04:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263440#M496305</guid>
      <dc:creator />
      <dc:date>2011-11-29T04:12:10Z</dc:date>
    </item>
    <item>
      <title>Counting null values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263441#M496306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;silly question where do you insert qv docs in qlikcommunity? am sending it to you by email in the mean time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 04:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263441#M496306</guid>
      <dc:creator />
      <dc:date>2011-11-29T04:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Counting null values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263442#M496307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From: quickview &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sent: Tuesday, 29 November 2011 3:12 PM&lt;/P&gt;&lt;P&gt;To: Danny Rock&lt;/P&gt;&lt;P&gt;Subject: &lt;A href="Development (QlikView Desktop)"&gt;&lt;/A&gt; - Re: Counting null values in a table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity&amp;lt;http://community.qlik.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: Counting null values in a table&lt;/P&gt;&lt;P&gt;created by quickview&amp;lt;http://community.qlik.com/people/quickview&amp;gt; in Development (QlikView Desktop) - View the full discussion&amp;lt;http://community.qlik.com/message/168589#168589&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 04:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263442#M496307</guid>
      <dc:creator />
      <dc:date>2011-11-29T04:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Counting null values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263443#M496308</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;=if(isnull(invdate)='-1',count (invdate))&lt;/P&gt;&lt;P&gt;may it helps you&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 04:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263443#M496308</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2011-11-29T04:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Counting null values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263444#M496309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not working either, it just ignores every order in the count function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From: rohit214 &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sent: Tuesday, 29 November 2011 3:48 PM&lt;/P&gt;&lt;P&gt;To: Danny Rock&lt;/P&gt;&lt;P&gt;Subject: &lt;A href="Development (QlikView Desktop)"&gt;&lt;/A&gt; - Re: Counting null values in a table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity&amp;lt;http://community.qlik.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: Counting null values in a table&lt;/P&gt;&lt;P&gt;created by rohit214&amp;lt;http://community.qlik.com/people/rohit214&amp;gt; in Development (QlikView Desktop) - View the full discussion&amp;lt;http://community.qlik.com/message/168579#168579&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 05:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263444#M496309</guid>
      <dc:creator />
      <dc:date>2011-11-29T05:06:02Z</dc:date>
    </item>
    <item>
      <title>Counting null values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263445#M496310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No its not working either. It is so strange because if i put the expression:&lt;/P&gt;&lt;P&gt;IF(ISNULL(INVOICEDATE)='-1','NO INVOICE'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it knows that it is empty and shows the NO INVOICE where there really is not any invoice, but then when is put the same condition in the the count function, it ignores all in the count&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 05:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263445#M496310</guid>
      <dc:creator />
      <dc:date>2011-11-29T05:06:04Z</dc:date>
    </item>
    <item>
      <title>Counting null values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263446#M496311</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;Hope this helps you in solving your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(if(isnull(invdate) OR Len(invdate) = 0, 0, 1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also this will improve the performance than using the count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 05:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263446#M496311</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2011-11-29T05:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Counting null values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263447#M496312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the count number of your INVOICEDATE records:2033. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested in your given qvw example file.&lt;/P&gt;&lt;P&gt;(The field name in the expression should be as same as the field name in the script. In this case it is upcase.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(DISTINCT if(len(trim(INVOICEDATE))&amp;gt;0,INVOICEDATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 06:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263447#M496312</guid>
      <dc:creator />
      <dc:date>2011-11-29T06:14:44Z</dc:date>
    </item>
    <item>
      <title>Counting null values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263448#M496313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone, the problem was not the expression, but a case of one to many which I did not realise, so some orders had more than one invoice and when the count inluded it I didnt understand why as on the table, the order showed a blank field in the invoice, but after checking, I found out that it some of them had more than one invoice number but showed it as null on the table.....&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Despite the loss of time I must admit that I did learn a lot from all you guys&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 06:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-values-in-a-table/m-p/263448#M496313</guid>
      <dc:creator />
      <dc:date>2011-11-29T06:17:54Z</dc:date>
    </item>
  </channel>
</rss>

