<?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: Intervals between timestamps in hours with fractions of a day for interval ends in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Intervals-between-timestamps-in-hours-with-fractions-of-a-day/m-p/1293815#M460848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works. Thannk you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2017 03:57:06 GMT</pubDate>
    <dc:creator>alex_bernea</dc:creator>
    <dc:date>2017-03-29T03:57:06Z</dc:date>
    <item>
      <title>Intervals between timestamps in hours with fractions of a day for interval ends</title>
      <link>https://community.qlik.com/t5/QlikView/Intervals-between-timestamps-in-hours-with-fractions-of-a-day/m-p/1293812#M460845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to break the interval between 2 timestamps in order to find out the difference in hours per day with fractions for intervals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following input data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;StartTime&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;EndTime&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;02/08/17 20:44&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/10/17 04:52&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to show them as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;StartTime&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;EndTime&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Time elapsed&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;02/08/17 20:44&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/09/17 00:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03:16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;02/09/17 00:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/10/17 00:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;24:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;02/10/17 00:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/10/17 04:52&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;04:52&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried while loops and intervals, but I can't find a way to break correctly the edges of the intervals (those that are not full day)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 17:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervals-between-timestamps-in-hours-with-fractions-of-a-day/m-p/1293812#M460845</guid>
      <dc:creator>alex_bernea</dc:creator>
      <dc:date>2017-03-28T17:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Intervals between timestamps in hours with fractions of a day for interval ends</title>
      <link>https://community.qlik.com/t5/QlikView/Intervals-between-timestamps-in-hours-with-fractions-of-a-day/m-p/1293813#M460846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try sing interval function explained &lt;A href="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/FormattingFunctions/Interval.htm"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;something like &lt;STRONG&gt;interval(Endtime-StartTime,'HH:MM')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 17:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervals-between-timestamps-in-hours-with-fractions-of-a-day/m-p/1293813#M460846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-28T17:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Intervals between timestamps in hours with fractions of a day for interval ends</title>
      <link>https://community.qlik.com/t5/QlikView/Intervals-between-timestamps-in-hours-with-fractions-of-a-day/m-p/1293814#M460847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Interval(EndTime - StartTime, 'hh:mm') as [Time Elapsed];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD TimeStamp(RangeMax(DayStart(StartTime + IterNo()-1), StartTime)) as StartTime,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; TimeStamp(RangeMin(DayStart(StartTime + IterNo()-1, 1), EndTime)) as EndTime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While Floor(StartTime) + IterNo() &amp;lt;= Floor(EndTime + 1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartTime, EndTime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02/08/17 20:44, 02/10/17 04:52&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03/08/17 10:44, 03/10/17 17:52&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 17:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervals-between-timestamps-in-hours-with-fractions-of-a-day/m-p/1293814#M460847</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T17:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Intervals between timestamps in hours with fractions of a day for interval ends</title>
      <link>https://community.qlik.com/t5/QlikView/Intervals-between-timestamps-in-hours-with-fractions-of-a-day/m-p/1293815#M460848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works. Thannk you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 03:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervals-between-timestamps-in-hours-with-fractions-of-a-day/m-p/1293815#M460848</guid>
      <dc:creator>alex_bernea</dc:creator>
      <dc:date>2017-03-29T03:57:06Z</dc:date>
    </item>
  </channel>
</rss>

