<?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: Issue with expression Count If Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-expression-Count-If-Count/m-p/1432005#M430602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(&lt;STRONG&gt;distinct&lt;/STRONG&gt; {&amp;lt;StartDate={"&amp;gt;$(=date(today(),'DD/MM/YYYY'))"}, Employee={"=Count(REQ)=0"}&amp;gt;}Employee)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: Please change your Date format according to StartDate format. You can simply link Employee and Request table in QlikView&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2017 10:05:55 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2017-10-11T10:05:55Z</dc:date>
    <item>
      <title>Issue with expression Count If Count</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-expression-Count-If-Count/m-p/1432003#M430600</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;Can someone please help me with this expression. New to qlikview and still getting to grips with the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression I've come up with but its giving an error:&lt;/P&gt;&lt;P&gt;=Count(if([StartDate] &amp;gt; Today(), &lt;SPAN style="font-size: 10pt;"&gt;if(Count(REQ)=0,0)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What I'm essentially trying to do it count the number of employees starting in the future and have no requests tied to them, so if theres 20 employees starting in the future and 15 don't have a request the count would be 15.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In SQL it would look something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Select Count(*)&lt;/P&gt;&lt;P&gt;From Employee,Request&lt;/P&gt;&lt;P&gt;Where Employee.Id = Request.Id&lt;/P&gt;&lt;P&gt;AND StartDate &amp;gt; Today()&lt;/P&gt;&lt;P&gt;AND (Select REQ&lt;/P&gt;&lt;P&gt;FROM Request&lt;/P&gt;&lt;P&gt;GROUP By REQ&lt;/P&gt;&lt;P&gt;Having Count(REQ) = 0&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 07:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-expression-Count-If-Count/m-p/1432003#M430600</guid>
      <dc:creator />
      <dc:date>2017-10-11T07:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with expression Count If Count</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-expression-Count-If-Count/m-p/1432004#M430601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Count({&amp;lt;StartDate = {"=StartDate &amp;gt;= Today()"}, Employee.Id = {"=Employee.Id = Request.Id"}, REQ = {"=Count(REQ) = 0"}&amp;gt;} ), Req)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR You can create flag for those and you can degrade the flag in the expression if needed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 10:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-expression-Count-If-Count/m-p/1432004#M430601</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-10-11T10:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with expression Count If Count</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-expression-Count-If-Count/m-p/1432005#M430602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(&lt;STRONG&gt;distinct&lt;/STRONG&gt; {&amp;lt;StartDate={"&amp;gt;$(=date(today(),'DD/MM/YYYY'))"}, Employee={"=Count(REQ)=0"}&amp;gt;}Employee)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: Please change your Date format according to StartDate format. You can simply link Employee and Request table in QlikView&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 10:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-expression-Count-If-Count/m-p/1432005#M430602</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-10-11T10:05:55Z</dc:date>
    </item>
  </channel>
</rss>

