<?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: How to count without null values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281673#M866608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try this :-&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;Emp_Status={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Completed"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}If(Len(Ticket_No)&amp;gt;0,1)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2016 10:09:26 GMT</pubDate>
    <dc:creator>qlik_jaijhn</dc:creator>
    <dc:date>2016-12-20T10:09:26Z</dc:date>
    <item>
      <title>How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281664#M866595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count employees based on &lt;SPAN style="font-size: 13.3333px;"&gt;Ticket_No.If &lt;SPAN style="font-size: 13.3333px;"&gt;Ticket_No is null no need to count employee.&lt;/SPAN&gt;&lt;/SPAN&gt; Please find my below query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;Emp_Status={'Completed'},Ticket_No={'&amp;gt;0'}&amp;gt;}Ticket_No)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281664#M866595</guid>
      <dc:creator>gireesh1216</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281665#M866596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count({$&amp;lt;Emp_Status={'Completed'},Ticket_No={"$(=Len(Ticket_No)&amp;gt;0)"}&amp;gt;}Ticket_No)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 11:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281665#M866596</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-12-19T11:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281666#M866597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NULL won't be considered by normal aggregation-functions therefore you should get with: =count({$&amp;lt;Emp_Status={'Completed'}&amp;gt;}Ticket_No) the correct result. To exclude records which aren't NULL but empty you could use: =count({$&amp;lt;Emp_Status={'Completed'},Ticket_No={'*'}&amp;gt;}Ticket_No).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 11:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281666#M866597</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-12-19T11:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281667#M866598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=count({$&amp;lt;Emp_Status={'Completed'}&amp;gt;} if(NOT isnull(Ticket_No), Ticket_No))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 11:28:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281667#M866598</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-19T11:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281668#M866599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Above function is not working.I tried below expression it's working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Ticket_No&amp;gt;0,Ticket_No,'null') as &lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Ticket_No&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; Above expression i used in edit script window&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=count({$&amp;lt;Emp_Status={'Completed'}&amp;gt;}Ticket_No)-count(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{$&amp;lt;Emp_Status={'Completed'},&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Ticket_No={' null'}&lt;/STRONG&gt;&amp;gt;}Ticket_No&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281668#M866599</guid>
      <dc:creator>gireesh1216</dc:creator>
      <dc:date>2016-12-20T07:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281669#M866600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to count excluding null values then use operator (-=) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;=count({$&amp;lt;Emp_Status={'Completed'} , &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit;"&gt;Ticket_No &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;-=&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit;"&gt;{' null'} &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&amp;gt;}Ticket_No)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281669#M866600</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-20T07:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281670#M866605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;beckend:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if(Ticket_No&amp;gt;0,Ticket_No,null()) as &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit;"&gt;Ticket_No&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this in frontend&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Emp_Status={'Completed'}&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ticket_No&lt;/SPAN&gt;=-{''}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ticket_No&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 09:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281670#M866605</guid>
      <dc:creator />
      <dc:date>2016-12-20T09:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281671#M866606</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;generate new field in the script something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(Ticket_No) &amp;gt; 0, 1, 0) as TickCnt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula in the FrontEnd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(TickCnt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;F.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 10:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281671#M866606</guid>
      <dc:creator />
      <dc:date>2016-12-20T10:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281672#M866607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and indeed invoke the set analysis &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Emp_Status={'Completed'}&lt;/SPAN&gt;&amp;gt;} TickCnt)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 10:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281672#M866607</guid>
      <dc:creator />
      <dc:date>2016-12-20T10:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281673#M866608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try this :-&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;Emp_Status={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Completed"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}If(Len(Ticket_No)&amp;gt;0,1)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 10:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281673#M866608</guid>
      <dc:creator>qlik_jaijhn</dc:creator>
      <dc:date>2016-12-20T10:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281674#M866609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'trebuchet ms', geneva;"&gt;Hi Gireesh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Try below expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;If(Emp_Status='Comlpeted' and not isnull(Ticket_No),Count(Ticket_No))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Warm regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'trebuchet ms', geneva;"&gt;Venkata Sreekanth&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 11:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281674#M866609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-20T11:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281675#M866610</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 the following expression:&lt;/P&gt;&lt;P&gt;Count(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Emp_Status = 'Completed' AND not isNull(Ticket_No),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ticket_No&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 11:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281675#M866610</guid>
      <dc:creator>diego_vazquez</dc:creator>
      <dc:date>2016-12-20T11:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281676#M866611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommens that you disregard ALL of the above responses except for Marcus Sommer's answer, as they are either wrong or do unnecessary extra work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 12:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281676#M866611</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-12-20T12:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to count without null values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281677#M866612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok i will try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 12:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-without-null-values/m-p/1281677#M866612</guid>
      <dc:creator>gireesh1216</dc:creator>
      <dc:date>2016-12-20T12:44:30Z</dc:date>
    </item>
  </channel>
</rss>

