<?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: Count Activities Where ActivityDate &amp;gt; ResponseDate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Activities-Where-ActivityDate-gt-ResponseDate/m-p/96203#M457735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will not work with set analysis when it's a variable date.&lt;/P&gt;&lt;P&gt;Set analysis will only calculate once, and so, its best to make the validation throught the script, rather than the graphs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, do a simple transformation like bellow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15361572207028512" jivemacro_uid="_15361572207028512"&gt;
&lt;P&gt;Created:&lt;/P&gt;
&lt;P&gt;load * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;Id,Name,CreateDate&lt;/P&gt;
&lt;P&gt;001,Tom Cruise, 2018-08-29&lt;/P&gt;
&lt;P&gt;002,Tom Hanks,2018-09-02&lt;/P&gt;
&lt;P&gt;003,Bill Nye, 2018-06-25&lt;/P&gt;
&lt;P&gt;004,Johnny Cash,2018-06-27&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Activity:&lt;/P&gt;
&lt;P&gt;Load * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;Id,PersonId,Name,ActivityDate&lt;/P&gt;
&lt;P&gt;117,001, Tom Cruise,2018-08-30&lt;/P&gt;
&lt;P&gt;118,001, Tom Cruise,2018-09-31&lt;/P&gt;
&lt;P&gt;211,003, Bill Nye, 2018-06-26&lt;/P&gt;
&lt;P&gt;212,003, Bill Nye, 2018-06-27&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;left join (Created)&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Name,&lt;/P&gt;
&lt;P&gt;ActivityDate&lt;/P&gt;
&lt;P&gt;Resident Activity;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table Activity;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FinalData:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Id,&lt;/P&gt;
&lt;P&gt;Name,&lt;/P&gt;
&lt;P&gt;CreateDate,&lt;/P&gt;
&lt;P&gt;ActivityDate,&lt;/P&gt;
&lt;P&gt;if (ActivityDate&amp;gt;CreateDate,1,0) as [Flag]&lt;/P&gt;
&lt;P&gt;Resident Created;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table Created;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as epxression, use the flag as your aggregation field.&lt;/P&gt;&lt;P&gt;sum(Flag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will get you:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212716_sample.png" style="height: 382px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the QVW i used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2018 14:21:33 GMT</pubDate>
    <dc:creator>felipedl</dc:creator>
    <dc:date>2018-09-05T14:21:33Z</dc:date>
    <item>
      <title>Count Activities Where ActivityDate &gt; ResponseDate</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Activities-Where-ActivityDate-gt-ResponseDate/m-p/96202#M457734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data that looks like in CAMPAIGN RESPONSE TABLE: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-style: inherit; font-weight: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;Id&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateDate&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;001&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; Tom Cruise&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2018-08-29&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;002&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; Tom Hanks&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2018-09-02&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;003&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; Bill Nye&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2018-06-25&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;004&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; Johnny Cash&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2018-06-27&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;I also have a data that looks like in ACTIVITY TABLE: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;CODE style="font-style: inherit; font-weight: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;Id&amp;nbsp;&amp;nbsp; PersonId&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivityDate&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;117&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;001&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tom Cruise&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2018-08-30&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;118&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;001&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tom Cruise&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2018-09-31&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;211&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;003&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bill Nye&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2018-06-26&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;212&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;003&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bill Nye&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2018-06-27&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;I want to create a STRAIGHT TABLE that shows ALL CAMPAIGN RESPONSES and if they have had an ACTIVITY since the CreateDate. Something like:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;CODE style="font-style: inherit; font-weight: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; Id&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateDate ActivitesAfterResponse&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;001&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; Tom Cruise&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2018-08-29&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;002&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; Tom Hanks&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2018-09-02&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;003&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; Bill Nye&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2018-06-25&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;004&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; Johnny Cash &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;2018-06-27&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;0&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Currently, I have set analysis like below but it is not working: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #575757;"&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;=count({&amp;lt;ActivityDate={"&amp;gt;CreateDate"}&amp;gt;}distinct(ActivityId))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Any help is appreciated! Thank you!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 13:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Activities-Where-ActivityDate-gt-ResponseDate/m-p/96202#M457734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T13:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count Activities Where ActivityDate &gt; ResponseDate</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Activities-Where-ActivityDate-gt-ResponseDate/m-p/96203#M457735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will not work with set analysis when it's a variable date.&lt;/P&gt;&lt;P&gt;Set analysis will only calculate once, and so, its best to make the validation throught the script, rather than the graphs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, do a simple transformation like bellow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15361572207028512" jivemacro_uid="_15361572207028512"&gt;
&lt;P&gt;Created:&lt;/P&gt;
&lt;P&gt;load * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;Id,Name,CreateDate&lt;/P&gt;
&lt;P&gt;001,Tom Cruise, 2018-08-29&lt;/P&gt;
&lt;P&gt;002,Tom Hanks,2018-09-02&lt;/P&gt;
&lt;P&gt;003,Bill Nye, 2018-06-25&lt;/P&gt;
&lt;P&gt;004,Johnny Cash,2018-06-27&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Activity:&lt;/P&gt;
&lt;P&gt;Load * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;Id,PersonId,Name,ActivityDate&lt;/P&gt;
&lt;P&gt;117,001, Tom Cruise,2018-08-30&lt;/P&gt;
&lt;P&gt;118,001, Tom Cruise,2018-09-31&lt;/P&gt;
&lt;P&gt;211,003, Bill Nye, 2018-06-26&lt;/P&gt;
&lt;P&gt;212,003, Bill Nye, 2018-06-27&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;left join (Created)&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Name,&lt;/P&gt;
&lt;P&gt;ActivityDate&lt;/P&gt;
&lt;P&gt;Resident Activity;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table Activity;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FinalData:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Id,&lt;/P&gt;
&lt;P&gt;Name,&lt;/P&gt;
&lt;P&gt;CreateDate,&lt;/P&gt;
&lt;P&gt;ActivityDate,&lt;/P&gt;
&lt;P&gt;if (ActivityDate&amp;gt;CreateDate,1,0) as [Flag]&lt;/P&gt;
&lt;P&gt;Resident Created;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table Created;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as epxression, use the flag as your aggregation field.&lt;/P&gt;&lt;P&gt;sum(Flag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will get you:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212716_sample.png" style="height: 382px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the QVW i used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 14:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Activities-Where-ActivityDate-gt-ResponseDate/m-p/96203#M457735</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-09-05T14:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count Activities Where ActivityDate &gt; ResponseDate</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Activities-Where-ActivityDate-gt-ResponseDate/m-p/96204#M457736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dave. Felip is right, set analysis is not appropriate to this challenge. But you can try to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;solve &lt;/SPAN&gt;it by expression as well&lt;/P&gt;&lt;P&gt;Sum(Aggr(If(ActivityDate &amp;gt; Max(TOTAL &amp;lt;Name&amp;gt; CreateDate), 1), Name, Id))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 15:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Activities-Where-ActivityDate-gt-ResponseDate/m-p/96204#M457736</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-05T15:26:48Z</dc:date>
    </item>
  </channel>
</rss>

