<?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: Working hours in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825348#M290719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this.&amp;nbsp; My result does not change, when I change the 15 to any other value.&amp;nbsp; Do you know why?&amp;nbsp; It also doesn't deduct the non-working hours.Please see the attached image.&amp;nbsp; In the example The "Repair Due" is tomorrow morning, therefore it should only be a few hours.&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72290_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2014 12:56:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-27T12:56:19Z</dc:date>
    <item>
      <title>Working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825343#M290714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I calculate the Interval between two dates, and ignore AFTER &lt;STRONG&gt;working hours.&lt;/STRONG&gt; In other words, only consider hours between 08:00 and 17:00. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 14:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825343#M290714</guid>
      <dc:creator />
      <dc:date>2014-11-26T14:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825344#M290715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bradley, maybe there is a better solution but if it's fixed 9 work hours (and then 15 non-work hours) you can use:&lt;/P&gt;&lt;P&gt;=Interval((EndDateTimeField-StartDateTimeField) - Floor(EndDateTimeField-StartDateTimeField)*15/24)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 15:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825344#M290715</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-26T15:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825345#M290716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;How are your Date fields ?&lt;/P&gt;&lt;P&gt;Can u share some sample data ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 15:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825345#M290716</guid>
      <dc:creator />
      <dc:date>2014-11-26T15:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825346#M290717</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;maybe this could help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/69515"&gt;Count of Working Days From Today&lt;/A&gt;&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;André Gomes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 15:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825346#M290717</guid>
      <dc:creator>agomes1971</dc:creator>
      <dc:date>2014-11-26T15:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825347#M290718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have an hour field in your data you can add a flag like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;hour&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Hour_Field&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;1)/86400)&amp;gt;=8 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;hour&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Hour_Field&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-1)/86400)&amp;lt;=17,1,0) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TimeWorking8to5&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 16:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825347#M290718</guid>
      <dc:creator />
      <dc:date>2014-11-26T16:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825348#M290719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this.&amp;nbsp; My result does not change, when I change the 15 to any other value.&amp;nbsp; Do you know why?&amp;nbsp; It also doesn't deduct the non-working hours.Please see the attached image.&amp;nbsp; In the example The "Repair Due" is tomorrow morning, therefore it should only be a few hours.&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72290_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 12:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825348#M290719</guid>
      <dc:creator />
      <dc:date>2014-11-27T12:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825349#M290720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bradley, that yellow row seems ok, the difference between "27/11/2014 14:53:56" and "28/11/2014 11:23:00" is "20:29:04"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the expression "15" is the non-working hours... Maybe I don't understand the issue, can you explain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 13:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825349#M290720</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-27T13:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825350#M290721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ruben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it is 20:29:04.&amp;nbsp; But the non-working hours should still come off that, Because it's the next day.&amp;nbsp; So it should actually be round about 5 hours only. And the expression as you gave it, does not give me 5.&amp;nbsp; It gives me 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression : =Interval(([Original SLA2]-Now()) - Floor([Original SLA2]-Now())*15/24)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 13:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825350#M290721</guid>
      <dc:creator />
      <dc:date>2014-11-27T13:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825351#M290722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right, I see a lot of faults in my expression like if start time is 16:55 and end time is next day at 8:05 my expression will count the first day as if you can still work 15 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm bit of busy today and can't elaborate, if I have free time I'll try to help you with the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 14:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825351#M290722</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-27T14:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825352#M290723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 14:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825352#M290723</guid>
      <dc:creator />
      <dc:date>2014-11-27T14:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825353#M290724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Bradley, there it is:&lt;/P&gt;&lt;P&gt;=If(Floor(END)=Floor(START), Interval(END-START), //For task finished in the same day&lt;/P&gt;&lt;P&gt;// If not finished in the same day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval(17/24 - Time('$(=Time(START))') // Hours to finish the first day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + Time('$(=Time(END))') - 8/24 // Hours from start of end day to due time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + ((Floor(END)- Floor(START)-1)*9/24) //Complete days between&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; )&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope his works, I didn't tested well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 14:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours/m-p/825353#M290724</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-27T14:45:49Z</dc:date>
    </item>
  </channel>
</rss>

