<?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 Date Time Interval Mathematics in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Time-Interval-Mathematics/m-p/173299#M42528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Modify the time1 and time2 field to&lt;/P&gt;&lt;P&gt;time(left(time1,2) &amp;amp; ':' &amp;amp; right(time1,2),'hh:mm') as time1&lt;/P&gt;&lt;P&gt;time(left(time2,2) &amp;amp; ':' &amp;amp; right(time2,2),'hh:mm') as time2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now time(Sum(time1),'hh:mm') will give you total no of time for time1 field and&lt;/P&gt;&lt;P&gt;time(Sum(time2),'hh:mm') will give you total no of time for time2 field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jan 2011 05:07:49 GMT</pubDate>
    <dc:creator>deepakk</dc:creator>
    <dc:date>2011-01-18T05:07:49Z</dc:date>
    <item>
      <title>Date Time Interval Mathematics</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Time-Interval-Mathematics/m-p/173298#M42527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 4 columns like the following...&lt;/P&gt;&lt;P&gt;Date1 Time1 Date2 Time2&lt;BR /&gt;18.01.2011 0100 19.01.2010 0200&lt;BR /&gt;&lt;BR /&gt;and i wanted to create an EXPRESSION to calculate total hrs.&lt;/P&gt;&lt;P&gt;Can someone contribute the formula? [;)]&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 04:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Time-Interval-Mathematics/m-p/173298#M42527</guid>
      <dc:creator />
      <dc:date>2011-01-18T04:54:10Z</dc:date>
    </item>
    <item>
      <title>Date Time Interval Mathematics</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Time-Interval-Mathematics/m-p/173299#M42528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Modify the time1 and time2 field to&lt;/P&gt;&lt;P&gt;time(left(time1,2) &amp;amp; ':' &amp;amp; right(time1,2),'hh:mm') as time1&lt;/P&gt;&lt;P&gt;time(left(time2,2) &amp;amp; ':' &amp;amp; right(time2,2),'hh:mm') as time2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now time(Sum(time1),'hh:mm') will give you total no of time for time1 field and&lt;/P&gt;&lt;P&gt;time(Sum(time2),'hh:mm') will give you total no of time for time2 field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 05:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Time-Interval-Mathematics/m-p/173299#M42528</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-01-18T05:07:49Z</dc:date>
    </item>
    <item>
      <title>Date Time Interval Mathematics</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Time-Interval-Mathematics/m-p/173300#M42529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;Thanks for your suggestion.&lt;/P&gt;&lt;P&gt;But if i do that, i'll only have the difference of one hr.&lt;/P&gt;&lt;P&gt;In fact, the answer should be 25 hrs because of the date. In the expression, we need to take into consideration of the date if it's not on the same date. That's the tricky part, to me...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 07:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Time-Interval-Mathematics/m-p/173300#M42529</guid>
      <dc:creator />
      <dc:date>2011-01-18T07:50:01Z</dc:date>
    </item>
    <item>
      <title>Date Time Interval Mathematics</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Time-Interval-Mathematics/m-p/173301#M42530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hei&lt;/P&gt;&lt;P&gt;attach is an example of what you asked&lt;/P&gt;&lt;P&gt;hope its helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 08:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Time-Interval-Mathematics/m-p/173301#M42530</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-01-18T08:07:17Z</dc:date>
    </item>
    <item>
      <title>Date Time Interval Mathematics</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Time-Interval-Mathematics/m-p/173302#M42531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;here are a second one.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 08:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Time-Interval-Mathematics/m-p/173302#M42531</guid>
      <dc:creator />
      <dc:date>2011-01-18T08:14:06Z</dc:date>
    </item>
  </channel>
</rss>

