<?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 - what does this fct return? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/INTERVAL-what-does-this-fct-return/m-p/473438#M176861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, Gysbert!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Me and a colleague were wondering a&amp;nbsp; bit about that - I still don't quite understand what that number is (what are 0.196 days?), but all I want to know is that 24hr-target_line, so that's fine.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jun 2013 15:16:08 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-06-14T15:16:08Z</dc:date>
    <item>
      <title>INTERVAL - what does this fct return?</title>
      <link>https://community.qlik.com/t5/QlikView/INTERVAL-what-does-this-fct-return/m-p/473436#M176859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following scenario: In our basic data_loading script, there is a calculated field in one table &lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp; interval(now() - [timestamp])&amp;nbsp; &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;I have been wondering what exactly is the value returned by this function and how it should be interpreted. I get different values of course, some like xxx:yy:ss or xxxx:yy:ss&lt;/P&gt;&lt;P&gt;I guess, by "manually" comparing dates and times, that the first digit is a nr. of days - but that would in some cases give me sth. like "8 days 196 hrs..." - that can't be right, can it?&lt;/P&gt;&lt;P&gt;All I want, actually, is to find out exactly for which items this interval is greater than 24 hrs which is the target_line.&lt;/P&gt;&lt;P&gt;Can anybody clarify this?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 13:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INTERVAL-what-does-this-fct-return/m-p/473436#M176859</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-06-14T13:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: INTERVAL - what does this fct return?</title>
      <link>https://community.qlik.com/t5/QlikView/INTERVAL-what-does-this-fct-return/m-p/473437#M176860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't specify a format string then you get a number back. 8.196 means 8.196 days, that's 8 days 4 hours 42 minutes 14 seconds, not 8 days and 196 hours.&lt;/P&gt;&lt;P&gt;Try interval(now() - [timestamp],'D hh:mm'). If all you want to know if the difference between now() and timestamp is larger than 24 hours any interval larger than 1 fits your criteria; 24 hours being 1 day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: 0.196 days is a fraction of a day, just a little under a fifth of a day. 0.5 is half a day or 12 hours, 0.25 is a quarter of a day or 6 hours.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 14:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INTERVAL-what-does-this-fct-return/m-p/473437#M176860</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-14T14:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: INTERVAL - what does this fct return?</title>
      <link>https://community.qlik.com/t5/QlikView/INTERVAL-what-does-this-fct-return/m-p/473438#M176861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, Gysbert!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Me and a colleague were wondering a&amp;nbsp; bit about that - I still don't quite understand what that number is (what are 0.196 days?), but all I want to know is that 24hr-target_line, so that's fine.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 15:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INTERVAL-what-does-this-fct-return/m-p/473438#M176861</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-06-14T15:16:08Z</dc:date>
    </item>
  </channel>
</rss>

