<?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: Not exists function in a Chart expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712008#M1080538</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Departments with No employees:&lt;/P&gt;&lt;P&gt;Dimension: Department&lt;/P&gt;&lt;P&gt;Expression: If(Count(Distinct EmployeeID) = 0, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will list all deparments having no employees is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employees with No Departments:&lt;/P&gt;&lt;P&gt;Dimension: EmployeeID&lt;/P&gt;&lt;P&gt;Expression: If(Count(Distinct Department) = 0, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will list all employees having no departments is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want both in pie chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension : No dimensions to be used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt; Departments with No employees =&amp;nbsp; Sum(Aggr(If(Count(Distinct EmployeeID) = 0, 1), Department))&lt;/P&gt;&lt;P&gt; Employees with No Departments = Sum(Aggr(If(Count(Distinct Department) = 0, 1), EmployeeID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jul 2014 06:56:40 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-07-04T06:56:40Z</dc:date>
    <item>
      <title>Not exists function in a Chart expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712005#M1080534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hello, Is it possible to use a non exists function in the expression of a chart? I want to find the count of a particular key field if another field does not exist?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 06:16:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712005#M1080534</guid>
      <dc:creator />
      <dc:date>2014-07-04T06:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Not exists function in a Chart expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712006#M1080535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Exists function can only be used in backend script. There are may ways to achieve this. If possible provide some more information to understand your question exactly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 06:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712006#M1080535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-04T06:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Not exists function in a Chart expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712007#M1080536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;OK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I want to create pie charts. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;for e.g. There are 10 departments and 150 employees.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 9pt; line-height: 1.5em;"&gt;One department may have multiple employees and one employee may work in multiple departments.. However, i want to display visually out of the whole lot,&amp;nbsp; the departments with no employees and the employeess which do not work in any department.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 9pt; line-height: 1.5em;"&gt;How can I achieve this in a pie chart or any other visual chart?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 9pt; line-height: 1.5em;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="padding-left: 3px; padding-right: 3px;"&gt;&lt;DIV style="margin-left: 12px;"&gt;&lt;DIV style="font-family: MS Shell Dlg 2; color: #000000; font-size: 9pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="padding-left: 3px; padding-right: 3px;"&gt;&lt;DIV style="margin-left: 12px;"&gt;&lt;DIV style="font-family: MS Shell Dlg 2; color: #000000; font-size: 9pt;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 3px; padding-right: 3px;"&gt;&lt;DIV style="margin-left: 12px;"&gt;&lt;DIV style="font-family: MS Shell Dlg 2; color: #000000; font-size: 9pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 06:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712007#M1080536</guid>
      <dc:creator />
      <dc:date>2014-07-04T06:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Not exists function in a Chart expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712008#M1080538</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Departments with No employees:&lt;/P&gt;&lt;P&gt;Dimension: Department&lt;/P&gt;&lt;P&gt;Expression: If(Count(Distinct EmployeeID) = 0, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will list all deparments having no employees is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employees with No Departments:&lt;/P&gt;&lt;P&gt;Dimension: EmployeeID&lt;/P&gt;&lt;P&gt;Expression: If(Count(Distinct Department) = 0, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will list all employees having no departments is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want both in pie chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension : No dimensions to be used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt; Departments with No employees =&amp;nbsp; Sum(Aggr(If(Count(Distinct EmployeeID) = 0, 1), Department))&lt;/P&gt;&lt;P&gt; Employees with No Departments = Sum(Aggr(If(Count(Distinct Department) = 0, 1), EmployeeID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 06:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712008#M1080538</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-07-04T06:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Not exists function in a Chart expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712009#M1080542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Count({&amp;lt;Department=e({&amp;lt;Employee={'*'}&amp;gt;}Department)&amp;gt;} Department)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // No of departments with no employee&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Employee=e({&amp;lt;Department={'*'}&amp;gt;}Employee)&amp;gt;} Employee)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // No of employees with no department&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 07:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712009#M1080542</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-04T07:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Not exists function in a Chart expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712010#M1080545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;tresesco has already provided a best and recommended solutions here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "e" element in the script 1) excludes &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;employees who already working in the department and counting those department without employee. 2) excludes departments which already have employees and counting those employee without department.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 07:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712010#M1080545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-04T07:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Not exists function in a Chart expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712011#M1080546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks jagan.&lt;BR /&gt;Your set analysis worked like wonder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 07:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-exists-function-in-a-Chart-expression/m-p/712011#M1080546</guid>
      <dc:creator />
      <dc:date>2014-07-04T07:38:05Z</dc:date>
    </item>
  </channel>
</rss>

