<?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 difference in an if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-difference-in-an-if-statement/m-p/1308734#M616450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have these timestamps:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="80" style="width: 649px; height: 80px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="64"&gt;Apt Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Arrival&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Apt Time&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;StartTime&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;Fri 02/06/2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;08:14&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;08:15&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;08:21&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;My formula for Arrival time - Aprt Time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interval(ArrivedTime - AptTime , 'hh:mm') &lt;/P&gt;&lt;P&gt;I have formatted the answer to General: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show if the person arrived before the AptTime to show EARLY or LATE&lt;/P&gt;&lt;P&gt;if(interval(ArrivedTime - AptTime, 'mm')&amp;nbsp; &amp;gt;= 0, 'Early')&amp;nbsp; (Early works but all other values are blank)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be possible to show if the ArrivedTime was within 10 mins either way of the AptTime???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jun 2017 04:12:31 GMT</pubDate>
    <dc:creator>josephinetedesc</dc:creator>
    <dc:date>2017-06-05T04:12:31Z</dc:date>
    <item>
      <title>Time difference in an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Time-difference-in-an-if-statement/m-p/1308734#M616450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have these timestamps:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="80" style="width: 649px; height: 80px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="64"&gt;Apt Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Arrival&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Apt Time&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;StartTime&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;Fri 02/06/2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;08:14&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;08:15&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;08:21&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;My formula for Arrival time - Aprt Time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interval(ArrivedTime - AptTime , 'hh:mm') &lt;/P&gt;&lt;P&gt;I have formatted the answer to General: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show if the person arrived before the AptTime to show EARLY or LATE&lt;/P&gt;&lt;P&gt;if(interval(ArrivedTime - AptTime, 'mm')&amp;nbsp; &amp;gt;= 0, 'Early')&amp;nbsp; (Early works but all other values are blank)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be possible to show if the ArrivedTime was within 10 mins either way of the AptTime???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 04:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-difference-in-an-if-statement/m-p/1308734#M616450</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2017-06-05T04:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference in an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Time-difference-in-an-if-statement/m-p/1308735#M616451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if( (ArrivedTime - &lt;STRONG&gt;AptTime&lt;/STRONG&gt;)&amp;nbsp; &amp;lt;= 10/24/60&amp;nbsp; and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;AptTime &lt;/STRONG&gt;&lt;/SPAN&gt;- ArrivedTime )&amp;nbsp; &amp;lt;= 10/24/60&lt;/SPAN&gt;, 'Withing range')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 05:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-difference-in-an-if-statement/m-p/1308735#M616451</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-06-05T05:00:17Z</dc:date>
    </item>
  </channel>
</rss>

