<?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: Complicated count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529823#M482768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert - many thanks for all of your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea why I might not be seeing the full set of results as per the below post? &lt;/P&gt;&lt;P&gt;From what I have read, I would have thought that the 'total' keyword would enforce this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jul 2013 15:53:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-30T15:53:27Z</dc:date>
    <item>
      <title>Complicated count</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529818#M482763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I am looking to complete a count on a particular field (Project Manager) and I suspect that I need to use the aggr() function and set analysis - however I don't know how exactly to do this! Help please.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I have a list of projects (c.300), each with a Project Manager. Projects are either active or inactive (as flagged by the 'Active' field).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;What I want to be able to do is create a Straight Table which lists some project information, the project manager and a count of how many Active projects each Project Manager is working on. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Project Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Project Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Active&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Start Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Finish Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Project Manager (PM)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;No. of active Projects this PM has&lt;/STRONG&gt;&lt;/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t;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Joe Bloggs has three projects but only two are &lt;STRONG&gt;active&lt;/STRONG&gt; projects, so he has a '2'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Jane and Anne have one active project each.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Any idea how I can do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 16:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529818#M482763</guid>
      <dc:creator />
      <dc:date>2013-07-26T16:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated count</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529819#M482764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count({&amp;lt;Active={'Yes'}&amp;gt;} total &amp;lt;[Project Manager (PM)]&amp;gt; [Project Code])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 16:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529819#M482764</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-26T16:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated count</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529820#M482765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Gysbert. That is exactly what I require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not clear as to why the Project Code field is used...&lt;/P&gt;&lt;P&gt;Would you mind telling elaborating a little on the construct of this function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 16:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529820#M482765</guid>
      <dc:creator />
      <dc:date>2013-07-26T16:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated count</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529821#M482766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One other observation - I notice that the number that I get is limited by other contraints on the table. For example i have limited the table to show me only project which are due to finish in the next month and this gives me a different number to a table that displays all projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to show all active projects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally ( ! ), if I want to add a second condition to my set analysis for example to count only projects with a 'Red' status, would I add the text in bold below?&lt;/P&gt;&lt;P&gt;count({&amp;lt;Active={'Yes'}, &lt;STRONG&gt;Status={'Red'}&lt;/STRONG&gt;&amp;gt;} total &amp;lt;[Project Manager (PM)]&amp;gt; [Project Code])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks,&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 16:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529821#M482766</guid>
      <dc:creator />
      <dc:date>2013-07-26T16:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated count</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529822#M482767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Project Code can be replaced with any other field. The count function just needs a field to count, it doesn't matter which field you use. The total keyword is necessary because you want the total count for each project manager.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 17:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529822#M482767</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-26T17:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated count</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529823#M482768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert - many thanks for all of your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea why I might not be seeing the full set of results as per the below post? &lt;/P&gt;&lt;P&gt;From what I have read, I would have thought that the 'total' keyword would enforce this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 15:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-count/m-p/529823#M482768</guid>
      <dc:creator />
      <dc:date>2013-07-30T15:53:27Z</dc:date>
    </item>
  </channel>
</rss>

