<?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: INTERVAL usage difficulties when creating date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/INTERVAL-usage-difficulties-when-creating-date/m-p/514024#M192053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, dear Michael, your guess is totally correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact I had the same guess with the significant difference that I did NOT have a clue whatsoever how to strip the date from the Time-stamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the quick and accurate response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kalin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 21:23:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-23T21:23:41Z</dc:date>
    <item>
      <title>INTERVAL usage difficulties when creating date</title>
      <link>https://community.qlik.com/t5/QlikView/INTERVAL-usage-difficulties-when-creating-date/m-p/514022#M192051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I am calculating with INTERVAL the working hours as follows (in the LOAD statement):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE: interval(MaxTimeStamp-MinTimeStamp) as WHOURS&lt;/P&gt;&lt;P&gt;Note: worked as a charm&lt;/P&gt;&lt;P&gt;When adding WHOURS to a chart with formatting as "Interval" its is adding up all hours above 24 without a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Then I put one more condition - having working time starting at 08:00AM I don't wanna count the time before 08:00AM as working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few of the codes I tried:&lt;/P&gt;&lt;P&gt;a) interval(MaxTimeStamp-time('08:00','hh:mm') as WHOURS&lt;/P&gt;&lt;P&gt;b) interval(MaxTimeStamp-maketime(8)) as WHOURS&lt;/P&gt;&lt;P&gt;c) interval#(interval(time(MaxTimeStamp,'hh:mm')'-time('08:00','hh:mm')),'hh:mm') as WHOURS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROBLEM: When adding the field WHOURS to a chart with formatting "Interval" it is showing long sequence of numbers, something like 9905220:2023. Whenr I use the chart formattting "Time - hh:mm" it is showing properly the hours per raw, but of course the totals are wrong since they can't show more than 24hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the reason for the formatting issue in the chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 14:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INTERVAL-usage-difficulties-when-creating-date/m-p/514022#M192051</guid>
      <dc:creator />
      <dc:date>2013-10-23T14:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: INTERVAL usage difficulties when creating date</title>
      <link>https://community.qlik.com/t5/QlikView/INTERVAL-usage-difficulties-when-creating-date/m-p/514023#M192052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kalin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that the MaxTimeStamp field contains &lt;STRONG&gt;date&lt;/STRONG&gt; and time.&amp;nbsp; Try use frac() function to cut only the time part, removing days:&lt;/P&gt;&lt;P&gt;frac(MaxTimeStamp)&lt;/P&gt;&lt;P&gt;and use it in your interval calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 15:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INTERVAL-usage-difficulties-when-creating-date/m-p/514023#M192052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-23T15:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: INTERVAL usage difficulties when creating date</title>
      <link>https://community.qlik.com/t5/QlikView/INTERVAL-usage-difficulties-when-creating-date/m-p/514024#M192053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, dear Michael, your guess is totally correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact I had the same guess with the significant difference that I did NOT have a clue whatsoever how to strip the date from the Time-stamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the quick and accurate response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kalin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 21:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INTERVAL-usage-difficulties-when-creating-date/m-p/514024#M192053</guid>
      <dc:creator />
      <dc:date>2013-10-23T21:23:41Z</dc:date>
    </item>
  </channel>
</rss>

