<?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 Time subtraction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-subtraction/m-p/1370516#M827738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to achieve the following output :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;184:37:40 - 00:00:00 = 184:37:40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above data set is basically a time value captured in terms of 'hh:mm:ss'. We need to calculate the difference between the two time values. How can this be achieved in qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Time subtraction</title>
      <link>https://community.qlik.com/t5/QlikView/Time-subtraction/m-p/1370516#M827738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to achieve the following output :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;184:37:40 - 00:00:00 = 184:37:40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above data set is basically a time value captured in terms of 'hh:mm:ss'. We need to calculate the difference between the two time values. How can this be achieved in qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-subtraction/m-p/1370516#M827738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Time subtraction</title>
      <link>https://community.qlik.com/t5/QlikView/Time-subtraction/m-p/1370517#M827739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all you need to go to the data load editor where your dates are (this is not compulsory, it just depends how Qlik is reading in the dates).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the dates and use the Timestamp#() function &lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Timestamp#(timeOne, 'hh:mm:ss') as timeOne,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Timestamp#(timeTwo, 'hh:mm:ss') as timeTwo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From blablabla;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your calculation would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interval(timeOne - timeTwo, 'hh:mm:ss')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;you can also skip the data load editor step and still do this if the format is already a time and not a string. Or you can still skip it and do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interval(Timestamp#(timeOne, 'hh:mm:ss')&lt;STRONG&gt; &lt;/STRONG&gt;- &lt;/STRONG&gt;&lt;STRONG&gt;Timestamp#(timeTwo, 'hh:mm:ss')&lt;/STRONG&gt;&lt;STRONG&gt;, 'hh:mm:ss')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Let me know how you get on!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 08:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-subtraction/m-p/1370517#M827739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-28T08:32:12Z</dc:date>
    </item>
  </channel>
</rss>

