<?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: Aggr and Count when comparing dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-and-Count-when-comparing-dates/m-p/129925#M9142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Is it saying find the project ID where max{activity finish dates] &amp;lt; [min project planned finish date]&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, exactly that. It's called set analysis. See these blog posts for more information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4430"&gt;Why is it called Set Analysis?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Aug 2018 06:33:47 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2018-08-31T06:33:47Z</dc:date>
    <item>
      <title>Aggr and Count when comparing dates</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Count-when-comparing-dates/m-p/129921#M9138</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;I need to calculate if a project was started on time.&amp;nbsp; To do this we compare the [Project planned finish date] to when the last activity was completed in the project (there are multiple activities).&amp;nbsp; Therefore, we have to find the max([activity finish dates]) and then compare that to the [project planned finish date].&amp;nbsp; I then want to count all those that are late and on time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(Aggr(Max([activity finish dates]), [projects]) &amp;lt; [project planned finish date]). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should give me the count of all on time projects, but the count is way too low (i have a data table set up showing all on time/late).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what is wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 02:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Count-when-comparing-dates/m-p/129921#M9138</guid>
      <dc:creator>walimmalik</dc:creator>
      <dc:date>2018-08-29T02:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Count when comparing dates</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Count-when-comparing-dates/m-p/129922#M9139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps something like this will work:&lt;/P&gt;&lt;P&gt;count({&amp;lt;[ProjectId]={"=max([activity finish dates])&amp;lt; min([project planned finish date])"}&amp;gt;} distinct [ProjectID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 15:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Count-when-comparing-dates/m-p/129922#M9139</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-08-29T15:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Count when comparing dates</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Count-when-comparing-dates/m-p/129923#M9140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, thank you works great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Count-when-comparing-dates/m-p/129923#M9140</guid>
      <dc:creator>walimmalik</dc:creator>
      <dc:date>2018-08-29T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Count when comparing dates</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Count-when-comparing-dates/m-p/129924#M9141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you explain what this set statement means: ({&amp;lt;[ProjectId]={"=max([activity finish dates])&amp;lt; min([project planned finish date])"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it saying find the project ID where max{activity finish dates] &amp;lt; [min project planned finish date]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't know you could use set statements like that.&amp;nbsp; Does the double = sign mean 'where' in this context?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 16:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Count-when-comparing-dates/m-p/129924#M9141</guid>
      <dc:creator>walimmalik</dc:creator>
      <dc:date>2018-08-30T16:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Count when comparing dates</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Count-when-comparing-dates/m-p/129925#M9142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Is it saying find the project ID where max{activity finish dates] &amp;lt; [min project planned finish date]&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, exactly that. It's called set analysis. See these blog posts for more information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4430"&gt;Why is it called Set Analysis?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2018 06:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Count-when-comparing-dates/m-p/129925#M9142</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-08-31T06:33:47Z</dc:date>
    </item>
  </channel>
</rss>

