<?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: Re: How can I formulate my count function. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510555#M1143707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to count it separately, you can try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(If(Len(Trim(SR_Ref))=0, SR_Ref)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, if you are bothered about the total mismatch, you can exclude the null values using AND opearator in set like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;Flag&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;={1},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;Area&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt; ={'Foreign Body'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #ff00ff; font-size: 18pt;"&gt;*&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;Sub_Area&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'Other',Physical','Amphibian','Animal','Conglom','Meat','Shell','Material','Rubber','Unidentified'}&amp;gt;}&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;Distinct&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;[SR_Ref]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Sep 2013 08:58:09 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-09-12T08:58:09Z</dc:date>
    <item>
      <title>Re: How can I formulate my count function.</title>
      <link>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510551#M1143703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The complaints reporting application in which am trying to count the different complaints by Area and Sub Area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is my current expression which is working ok, apart from when I total all sub Areas counts they do not equal the total of the Area count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 8pt; font-family: 'Courier New';"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;Flag&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;={1},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;Area&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'Foreign Body'}, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;Sub_Area&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'Other',Physical','Amphibian','Animal','Conglom','Meat','Shell','Material','Rubber','Unidentified'}&amp;gt;}&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;Distinct&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;[SR_Ref]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG.jpg" class="jive-image jiveImage" src="https://community.qlik.com/legacyfs/online/46423_Capture.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;When I checked out the data, I can see this is because there are some complaint lines that have i.e . &lt;/P&gt;&lt;P&gt;Area =Foreign Body &lt;/P&gt;&lt;P&gt;Sub Area = has no value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I count the Null values aswell?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 13:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510551#M1143703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-11T13:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I formulate my count function.</title>
      <link>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510552#M1143704</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;Null Count in Sub Area:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 8pt; font-family: 'Courier New';"&gt;=COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;Flag&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;={1},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;Area&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'Foreign Body'},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;Sub_Area&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={''}&amp;gt;}&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;Distinct&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;[SR_Ref]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;Regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 13:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510552#M1143704</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2013-09-11T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I formulate my count function.</title>
      <link>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510553#M1143705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Unfortunately this did not work&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 08:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510553#M1143705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-12T08:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I formulate my count function.</title>
      <link>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510554#M1143706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Courier New'; color: maroon;"&gt;while Loading Data&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Courier New'; color: maroon;"&gt;create filed&amp;nbsp; if(ISNULL(Sub_Area) OR LEN(Sub_Area)=0,1,0)) AS as Sub_Area&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Courier New'; color: maroon;"&gt;Use Expression &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Courier New'; color: blue;"&gt;=COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; color: black;"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; color: maroon;"&gt;Flag&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; color: black;"&gt;={1},&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; color: maroon;"&gt;Area&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; ={'Foreign Body'},&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; color: maroon;"&gt;Sub_Area&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; ={'0'}&amp;gt;}&lt;SPAN style="font-style: inherit; color: blue;"&gt;Distinct&lt;/SPAN&gt; &lt;SPAN style="font-style: inherit; color: maroon;"&gt;[SR_Ref]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-style: inherit; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-style: inherit; font-family: 'Courier New';"&gt;This will works...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-style: inherit; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-style: inherit; font-family: 'Courier New';"&gt;Vikas&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 08:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510554#M1143706</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-09-12T08:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How can I formulate my count function.</title>
      <link>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510555#M1143707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to count it separately, you can try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(If(Len(Trim(SR_Ref))=0, SR_Ref)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, if you are bothered about the total mismatch, you can exclude the null values using AND opearator in set like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;Flag&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;={1},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;Area&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt; ={'Foreign Body'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #ff00ff; font-size: 18pt;"&gt;*&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;Sub_Area&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'Other',Physical','Amphibian','Animal','Conglom','Meat','Shell','Material','Rubber','Unidentified'}&amp;gt;}&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;Distinct&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;[SR_Ref]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 08:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510555#M1143707</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-12T08:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I formulate my count function.</title>
      <link>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510556#M1143708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Courier New'; color: blue;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; color: black;"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; color: maroon;"&gt;Flag&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; color: black;"&gt;={1},&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; color: maroon;"&gt;Area&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; ={'Foreign Body'}, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; color: maroon;"&gt;Sub_Area&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; ={'Other',Physical','Amphibian','Animal','Conglom','Meat','Shell','Material','Rubber','Unidentified'},{&lt;SPAN style="font-style: inherit; font-size: 8pt; color: maroon;"&gt;Sub_Area&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-style: inherit; font-family: inherit;"&gt; &lt;/SPAN&gt;=null()}&amp;gt;}&lt;SPAN style="font-style: inherit; color: blue;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; color: maroon;"&gt;[SR_Ref]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-style: inherit; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-style: inherit; font-family: 'Courier New';"&gt;May be this work &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 09:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-How-can-I-formulate-my-count-function/m-p/510556#M1143708</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-09-12T09:31:57Z</dc:date>
    </item>
  </channel>
</rss>

