<?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 Sum the difference between two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-the-difference-between-two-dates/m-p/284038#M105543</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;&lt;/P&gt;&lt;P&gt;I have a simple sum(if(condition,today() - earlier_date))&amp;nbsp; and I'm getting an incorrect answer.&amp;nbsp; The correct answer should be 1083 based on manually looking at the data but the answer I'm getting is 30 680.&amp;nbsp; Individually, each line is reflecting the correct TAT but the sum of the TATs is wrong.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2011 12:33:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-09T12:33:53Z</dc:date>
    <item>
      <title>Sum the difference between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-the-difference-between-two-dates/m-p/284038#M105543</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;&lt;/P&gt;&lt;P&gt;I have a simple sum(if(condition,today() - earlier_date))&amp;nbsp; and I'm getting an incorrect answer.&amp;nbsp; The correct answer should be 1083 based on manually looking at the data but the answer I'm getting is 30 680.&amp;nbsp; Individually, each line is reflecting the correct TAT but the sum of the TATs is wrong.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 12:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-the-difference-between-two-dates/m-p/284038#M105543</guid>
      <dc:creator />
      <dc:date>2011-05-09T12:33:53Z</dc:date>
    </item>
    <item>
      <title>Sum the difference between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-the-difference-between-two-dates/m-p/284039#M105544</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;Maybe the some value are duplicate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you can show your example or qvw file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 12:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-the-difference-between-two-dates/m-p/284039#M105544</guid>
      <dc:creator />
      <dc:date>2011-05-09T12:52:30Z</dc:date>
    </item>
  </channel>
</rss>

