<?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: Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count/m-p/766927#M472738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use serhan's solution in UI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;col={'YES'}&amp;gt;} col)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script you can use:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Table:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ref,Product,Value,col&lt;BR /&gt; 1,111,700,yes&lt;BR /&gt; 2,111,400,no&lt;BR /&gt; 1,115, 1000,yes&lt;BR /&gt; 2, 116,800,no&lt;BR /&gt; 3, 116, 600&lt;BR /&gt; 3, 141, 900&lt;BR /&gt; 4, 150, 200&lt;BR /&gt; 4, 181, 100&lt;BR /&gt; 5, 182, 400]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;col&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YesCal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;col&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'yes';&lt;BR /&gt; concatenate&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;col&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NoCal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;col&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'no'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in UI:&lt;/P&gt;&lt;P&gt;&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;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NoCal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2014 14:02:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-19T14:02:30Z</dc:date>
    <item>
      <title>Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/766924#M472735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a col having YES and NO as data.I want to count no.of YES and NO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(col='YES',count(col) ) as col1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is showing error.&lt;/P&gt;&lt;P&gt;Can anyone help me please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 13:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/766924#M472735</guid>
      <dc:creator />
      <dc:date>2014-12-19T13:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/766925#M472736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this at front end, not in the script (in the script it is harder and inefficient).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;col={'YES'}&amp;gt;} col)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This technique is called Set Analysis. You can check in help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 13:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/766925#M472736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-19T13:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/766926#M472737</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;are you using group by in the script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 13:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/766926#M472737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-19T13:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/766927#M472738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use serhan's solution in UI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;col={'YES'}&amp;gt;} col)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script you can use:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Table:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ref,Product,Value,col&lt;BR /&gt; 1,111,700,yes&lt;BR /&gt; 2,111,400,no&lt;BR /&gt; 1,115, 1000,yes&lt;BR /&gt; 2, 116,800,no&lt;BR /&gt; 3, 116, 600&lt;BR /&gt; 3, 141, 900&lt;BR /&gt; 4, 150, 200&lt;BR /&gt; 4, 181, 100&lt;BR /&gt; 5, 182, 400]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;col&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YesCal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;col&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'yes';&lt;BR /&gt; concatenate&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;col&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NoCal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;col&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'no'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in UI:&lt;/P&gt;&lt;P&gt;&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;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NoCal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 14:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/766927#M472738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-19T14:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/766928#M472739</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;1. You can use the SET analysis in the application like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count({Col={'YES'}}&amp;nbsp; Col)&amp;nbsp; And count({Col={'NO'}}&amp;nbsp; Col)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the load script also as you create another fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;Load Col From Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Id,&lt;/P&gt;&lt;P&gt;Count( If(Col='YES', Col )) as YesCount, &lt;/P&gt;&lt;P&gt;Count( If(Col='NO', Col )) as NoCount&lt;/P&gt;&lt;P&gt;Resident Tab1 Group BY Id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 14:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/766928#M472739</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-19T14:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/766929#M472740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanq Anand&lt;/P&gt;&lt;P&gt;Continuing this.. i have 3YesCounts for 3different tables withe 3residents .how to get sum of these 3YesCounts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 14:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/766929#M472740</guid>
      <dc:creator />
      <dc:date>2014-12-19T14:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/766930#M472741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can concatenate those three resident tables and then sum the counts in another table using the resident. Also, if those three tables are different from each other then at the front end you can simply use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(YesCount1)+sum(YesCount2)+sum(YesCount3)&lt;/P&gt;&lt;P&gt;andsame with theNoCounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the example of the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ankita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 14:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/766930#M472741</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2014-12-19T14:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/766931#M472742</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;If you have any sample then please provide with few rows or you can simply concatenate them if fields names are same otherwise rename them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load YesCountField Resident 1;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load YesCountField Resident 1;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load YesCountField Resident 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in Front end do sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 14:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/766931#M472742</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-19T14:57:42Z</dc:date>
    </item>
  </channel>
</rss>

