<?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: Difference between two dates with aggr() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186754#M383890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is calculate the time difference between a specific occurrence and the first time this occurrence happened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2016 19:48:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-16T19:48:23Z</dc:date>
    <item>
      <title>Difference between two dates with aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186752#M383888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I'm having a problem while trying to read the difference between two dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137718_Capture.JPG" style="height: 117px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am using the following formula:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"Interval(fabs(Date#(MQCREATED, 'DD/MM/YYYY hh:mm:ss'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;fabs(Date#(aggr(min(MQCREATED),APPT_NUMBER), 'DD/MM/YYYY hh:mm:ss')),'DD')"&lt;/SPAN&gt;&lt;/P&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;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;But it doesn't show any result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I've tested 2 things: changing "MQCREATED" for a date (Column 2) and changing "&lt;SPAN style="font-size: 13.3333px;"&gt;aggr(min(MQCREATED),APPT_NUMBER)" for a date (Column 3). In both cases I've got a result.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&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;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'd like to do only&amp;nbsp; "MQCREATED - &lt;SPAN style="font-size: 13.3333px;"&gt;aggr(min(MQCREATED),APPT_NUMBER)". Any thoughts ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 15:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186752#M383888</guid>
      <dc:creator />
      <dc:date>2016-09-16T15:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates with aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186753#M383889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 16:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186753#M383889</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-16T16:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates with aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186754#M383890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is calculate the time difference between a specific occurrence and the first time this occurrence happened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 19:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186754#M383890</guid>
      <dc:creator />
      <dc:date>2016-09-16T19:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates with aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186755#M383891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-09-16 22_18_46-Qlik Sense Desktop.png" class="jive-image image-1" src="/legacyfs/online/137768_2016-09-16 22_18_46-Qlik Sense Desktop.png" style="height: 377px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 20:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186755#M383891</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-16T20:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates with aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186756#M383892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Stefan!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really liked your approach and yes, it works for my case.&lt;/P&gt;&lt;P&gt;Do you know why my approach was wrong ? Did I miss something ?&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, 16 Sep 2016 21:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186756#M383892</guid>
      <dc:creator />
      <dc:date>2016-09-16T21:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates with aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186757#M383893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your dimension, you were mixing two different kind of granularities, row based vs. APPT_NUMBER.&lt;/P&gt;&lt;P&gt;I think this grain mismatch causes your issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 21:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-with-aggr/m-p/1186757#M383893</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-16T21:17:35Z</dc:date>
    </item>
  </channel>
</rss>

