<?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 Interval Calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Interval-Calculations/m-p/927890#M321061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached my data source.&lt;/P&gt;&lt;P&gt;I calculated my loading duration as follows:&lt;/P&gt;&lt;P&gt; Interval( [First Pick Departure Date]-[First Pick Arrival Date],'mm') as&lt;STRONG&gt; LoadingDuration&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now want my model to say if &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[First Pick Arrival Date]&lt;/STRONG&gt; has a time greater than or equal to 17H00 but less than 23H59 then let &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[First Pick Arrival Date]&lt;/STRONG&gt; be the following day at 08H00. If &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[First Pick Arrival Date]&lt;/STRONG&gt; has a time between 00H00 and less than 08H00 then change time on &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[First Pick Arrival Date]&lt;/STRONG&gt; field to be 08H00 but the date will remain the same.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words if a truck arrives when the loading site is closed, l want my model to use 08H00 when the loading site is open to calculate the &lt;STRONG&gt;LoadingDuration&lt;/STRONG&gt; field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moses&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2015 07:41:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-18T07:41:16Z</dc:date>
    <item>
      <title>Interval Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Calculations/m-p/927890#M321061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached my data source.&lt;/P&gt;&lt;P&gt;I calculated my loading duration as follows:&lt;/P&gt;&lt;P&gt; Interval( [First Pick Departure Date]-[First Pick Arrival Date],'mm') as&lt;STRONG&gt; LoadingDuration&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now want my model to say if &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[First Pick Arrival Date]&lt;/STRONG&gt; has a time greater than or equal to 17H00 but less than 23H59 then let &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[First Pick Arrival Date]&lt;/STRONG&gt; be the following day at 08H00. If &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[First Pick Arrival Date]&lt;/STRONG&gt; has a time between 00H00 and less than 08H00 then change time on &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[First Pick Arrival Date]&lt;/STRONG&gt; field to be 08H00 but the date will remain the same.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words if a truck arrives when the loading site is closed, l want my model to use 08H00 when the loading site is open to calculate the &lt;STRONG&gt;LoadingDuration&lt;/STRONG&gt; field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moses&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 07:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Calculations/m-p/927890#M321061</guid>
      <dc:creator />
      <dc:date>2015-11-18T07:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Calculations/m-p/927891#M321062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Calculations/m-p/927891#M321062</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-11-18T10:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Calculations/m-p/927892#M321063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Calculations/m-p/927892#M321063</guid>
      <dc:creator />
      <dc:date>2015-11-18T14:32:17Z</dc:date>
    </item>
  </channel>
</rss>

