<?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: Awkward count in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Awkward-count-in-expression/m-p/752445#M1028287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assigned: count({&amp;lt;Engineer={'*'}&amp;gt;} distinct [Work Request Code])&lt;/P&gt;&lt;P&gt;Unassigned: count({$-&amp;lt;Engineer={'*'}&amp;gt;} distinct [Work Request Code])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2015 18:45:27 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-02-19T18:45:27Z</dc:date>
    <item>
      <title>Awkward count in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Awkward-count-in-expression/m-p/752444#M1028286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to perform the following count:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 tables, Work Requests and EngineerAssignments, these are joined via the work request code field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know how many work request have an engineer assigned and how many are unassigned (work request may have more than one engineer assigned!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I have 3209 work requests (I can work this out in a text object quiet easlily). &lt;/P&gt;&lt;P&gt;I can't count the number of records in the EngineerAssigments table as its doesn't give a unique count against work request number.&lt;/P&gt;&lt;P&gt;I have 1512 records in the EngineerAssigments table, but as some have multiple engineers are assigned to a single work request this is not the number I need.&lt;/P&gt;&lt;P&gt;The total row in the EngineerAssigments straight table shows 899 - so I assume this is 899 work request which have one or more engineers assigned.&amp;nbsp; this is the value I need to produce in a text object or even to show a pie chart of assigned and unassigned work requests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;Work Request Table:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="200" style="border: 1px solid rgb(0, 0, 0); width: 158px; height: 19px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Work request Code&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;003&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;004&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;006&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;007&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EngineersAssigned Table:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="186" style="border: 1px solid rgb(0, 0, 0); width: 329px; height: 186px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Work Request Code&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Engineer&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;004&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;004&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;006&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here I know there are 7 work requests.&amp;nbsp; And although there are 6 entries in the EngineersAssigned table, there are only 4 work requests which have someone assigned.&lt;/P&gt;&lt;P&gt;So the result I'm looking for would be 4 Assigned Work Requests and 3 Unassigned Work Requests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on the expression i need to count the assigned and unassigned work requests?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 16:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Awkward-count-in-expression/m-p/752444#M1028286</guid>
      <dc:creator />
      <dc:date>2015-02-19T16:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Awkward count in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Awkward-count-in-expression/m-p/752445#M1028287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assigned: count({&amp;lt;Engineer={'*'}&amp;gt;} distinct [Work Request Code])&lt;/P&gt;&lt;P&gt;Unassigned: count({$-&amp;lt;Engineer={'*'}&amp;gt;} distinct [Work Request Code])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 18:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Awkward-count-in-expression/m-p/752445#M1028287</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-02-19T18:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Awkward count in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Awkward-count-in-expression/m-p/752446#M1028288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert work perfectly &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 10:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Awkward-count-in-expression/m-p/752446#M1028288</guid>
      <dc:creator />
      <dc:date>2015-02-20T10:23:49Z</dc:date>
    </item>
  </channel>
</rss>

