<?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: Not standard working hours cycle time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25659#M605214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that you can exclude "working over the weekend" (see my previous reply), you first determine the 'legal' start and legal end of the working period:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StartPeriod = max(StartDate, &amp;lt;Sunday 23:00h&amp;gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - so whatever is higher will be used as start.&lt;/P&gt;&lt;P&gt;EndPeriod = min(EndDate, &amp;lt;Friday 23:00h&amp;gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - so whatever is lower will be used as end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Period = EndPeriod - StartPeriod.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - and this will give you the hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course the above is not QV code but gives you the idea. For max() (used in many programming languages) you can use NumMax() or RangeMax() in QV, and for min() you can use NumMin() or RangeMin() in QV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2018 15:00:41 GMT</pubDate>
    <dc:creator>f_rankie</dc:creator>
    <dc:date>2018-05-15T15:00:41Z</dc:date>
    <item>
      <title>Not standard working hours cycle time</title>
      <link>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25656#M605210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikview Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with counting cycle time as working hours.&lt;/P&gt;&lt;P&gt;I have to count working hours between two dates, but I have to take into consideration time from Sunday 23:00 (GMT) till Friday 23:00 (GMT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example if StartDate is Monday 9:00 and EndDate is Friday 18:00 I would like to receive 105.00 (hours)&lt;/P&gt;&lt;P&gt;If StartDate is Sunday 22:00 and EndDate is Monday 5:00 I should receive 6.00 hours&lt;/P&gt;&lt;P&gt;If Start Date is Friday 20:00 and EndDate is Saturday 12:00 I should receive 3.00 hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really appreciate any clues or comments, I have searched the community, but have not found similar case&lt;/P&gt;&lt;P&gt;The case is almost like networkingdays, but we have to include 1 hour from Sunday and shorten Firiday to 23:00 and this make me problem which I cannot overcome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for comments&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 11:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25656#M605210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-14T11:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Not standard working hours cycle time</title>
      <link>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25657#M605211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any idea how to resolve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 14:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25657#M605211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-15T14:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Not standard working hours cycle time</title>
      <link>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25658#M605213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the answer it will be important to know whether you can &lt;STRONG&gt;exclude&lt;/STRONG&gt; something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StartDate = Thursday 15:00&lt;/P&gt;&lt;P&gt;EndDate = Tuesday 08:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you &lt;STRONG&gt;ex&lt;/STRONG&gt;clude the possibility that the EndDate is 'smaller' (in terms of day of the week) than the StartDate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 14:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25658#M605213</guid>
      <dc:creator>f_rankie</dc:creator>
      <dc:date>2018-05-15T14:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Not standard working hours cycle time</title>
      <link>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25659#M605214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that you can exclude "working over the weekend" (see my previous reply), you first determine the 'legal' start and legal end of the working period:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StartPeriod = max(StartDate, &amp;lt;Sunday 23:00h&amp;gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - so whatever is higher will be used as start.&lt;/P&gt;&lt;P&gt;EndPeriod = min(EndDate, &amp;lt;Friday 23:00h&amp;gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - so whatever is lower will be used as end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Period = EndPeriod - StartPeriod.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - and this will give you the hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course the above is not QV code but gives you the idea. For max() (used in many programming languages) you can use NumMax() or RangeMax() in QV, and for min() you can use NumMin() or RangeMin() in QV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 15:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25659#M605214</guid>
      <dc:creator>f_rankie</dc:creator>
      <dc:date>2018-05-15T15:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Not standard working hours cycle time</title>
      <link>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25660#M605216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share sample application or data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 15:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25660#M605216</guid>
      <dc:creator>isingh30</dc:creator>
      <dc:date>2018-05-15T15:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Not standard working hours cycle time</title>
      <link>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25661#M605218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ishtdeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your comment. I have StartDate and EndDate. CycleTime should be counted as amount of hours, but only beetween Sunday 23:00 till Friday 23:00 (so 1 hours from Sunday, Mon, Tue, Wed, Thu, and 23 hours from Friday).For example if task start and end time is on Saturday CycleTime should be 0&lt;/P&gt;&lt;P&gt;I have to also exclude bank holidays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below I attached example of dates which I have:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="192" style="width: 383px; height: 120.43px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px black; border-image: none;" width="107"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;StartDate&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; border-image: none;" width="107"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;EndDate&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; border-image: none;" width="64"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;CycleTime&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;06.05.2018 22:10&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;07.05.2018 16:05&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;11.05.2018 15:44&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;14.05.2018 8:45&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;11.05.2018 23:44&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;16.05.2018 23:44&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;12.05.2018 1:39&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;14.05.2018 1:39&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;13.04.2018 21:52&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;15.04.2018 23:29&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;15.04.2017 23:19&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;21.04.2017 23:19&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I havent found solution yet, so if somebody has any idea or clue I would really appreciate help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 19:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-standard-working-hours-cycle-time/m-p/25661#M605218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-15T19:51:40Z</dc:date>
    </item>
  </channel>
</rss>

