<?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: Problems calculating time differences in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-calculating-time-differences/m-p/879708#M307059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try tis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;=Date#([Repair Call Creation DateTime],'DD/MM/YYYY')-Date#([Incidents Call Creation DateTime],&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;'DD/MM/YYYY')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 16:30:40 GMT</pubDate>
    <dc:creator>buzzy996</dc:creator>
    <dc:date>2015-05-05T16:30:40Z</dc:date>
    <item>
      <title>Problems calculating time differences</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-calculating-time-differences/m-p/879706#M307057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I'm hoping I might be able to find some help with this problem I've been having. I'm trying to calculate the difference between two dates (inc. timestamp), yet it seems no matter how I write the expression, the difference is not being calculated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;The two fields are imported as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; date#([Date Occurred], 'DD/MM/YYYY hh:mm:ss') as [Incidents Call Creation DateTime], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;FROM...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;And&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date([Repair Call Creation Date]+[Repair Call Creation Time], 'DD/MM/YYYY hh:mm:ss') as [Repair Call Creation DateTime], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; date([Call Creation Date], 'DD/MM/YYYY') as [Repair Call Creation Date],&lt;BR /&gt;&amp;nbsp;&amp;nbsp; date([Call Creation Time], 'hh:mm:ss') as [Repair Call Creation Time], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;FROM...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;For the expression, I have tried variations on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; [Repair Call Creation DateTime]-[Incidents Call Creation DateTime] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; interval([Repair Call Creation DateTime]-[Incidents Call Creation DateTime], 'DD hh:mm')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; date([Repair Call Creation DateTime]-[Incidents Call Creation DateTime], 'DD hh:mm')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;alongside the interpreted versions of the above formatting functions (just in case) but so far no luck!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I'm wondering if there is something to do with the extract on this data that may be causing the date to be treated as a string rather than a number, however I understand that the date function should be storing the number as a duel regardless. Furthermore, I have experimented with many different variations in the data extract (eg, date(date#([Repair Call Creation DateTime], 'DD/MM/YYYY hh:mm:ss'), 'DD/MM/YYYY hh:mm:ss' and&amp;nbsp; date([Repair Call Creation Date]&amp;amp;' '&amp;amp;[Repair Call Creation Time], 'DD/MM/YYYY hh:mm:ss') as [Repair Call Creation DateTime],) but I have still not had any success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I'd be grateful to hear any ideas or suggestions. Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 14:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-calculating-time-differences/m-p/879706#M307057</guid>
      <dc:creator />
      <dc:date>2015-05-05T14:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problems calculating time differences</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-calculating-time-differences/m-p/879707#M307058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a qlikview document that demonstrates the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 16:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-calculating-time-differences/m-p/879707#M307058</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-05T16:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problems calculating time differences</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-calculating-time-differences/m-p/879708#M307059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try tis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;=Date#([Repair Call Creation DateTime],'DD/MM/YYYY')-Date#([Incidents Call Creation DateTime],&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;'DD/MM/YYYY')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 16:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-calculating-time-differences/m-p/879708#M307059</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-05-05T16:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems calculating time differences</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-calculating-time-differences/m-p/879709#M307060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for late reply to this -- it's been a busy month!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked, thanks very much!! I ended up with the following:&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;interval&lt;/SPAN&gt;(&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;date#&lt;/SPAN&gt;(&lt;SPAN style="color: #993366;"&gt;[Repair Call Creation DateTime]&lt;/SPAN&gt;, 'DD/MM/YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;date#&lt;/SPAN&gt;(&lt;SPAN style="color: #993366;"&gt;[Incidents Call Creation DateTime]&lt;/SPAN&gt;, 'DD/MM/YYYY hh:mm:ss'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 11:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-calculating-time-differences/m-p/879709#M307060</guid>
      <dc:creator />
      <dc:date>2015-05-29T11:08:28Z</dc:date>
    </item>
  </channel>
</rss>

