<?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 only in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388483#M144966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where abouts in the script should this expression be put?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2012 11:24:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-01T11:24:32Z</dc:date>
    <item>
      <title>Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388475#M144958</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;I have to 2 timestamp fields Start Date and Closed Date. I want to calculate the time it takes from start date to close date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i only want to include times between 8am and 6 pm and not including saturdays and sundays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start date is 30/10/2012 15:00:00 and Closed Date is 31/10/2012 10:00:00 i would expect the calculated to bring back 5 hours as the cycle time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me work out how to do this calculation in Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 10:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388475#M144958</guid>
      <dc:creator />
      <dc:date>2012-10-31T10:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388476#M144959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/252929#252929"&gt;http://community.qlik.com/message/252929#252929&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/272111#272111" title="http://community.qlik.com/message/272111#272111"&gt;http://community.qlik.com/message/272111#272111&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 12:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388476#M144959</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-31T12:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388477#M144960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was hoping you could help me. i now have a working calculation to calculation working hours between two dates however a start date may be on a weekend. so i want to saying if it is on a weekend start the calculation from the start of the working day on a monday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the start date and close date are both on a weekend then the calculation should return a zero or if the end date is on a weekend count the end date is it was at close of business on a friday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help with my issue. as currently the workinghours cal returns a minus number when the start or end date is on a weekend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 16:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388477#M144960</guid>
      <dc:creator />
      <dc:date>2012-10-31T16:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388478#M144961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use lastworkingday(MyDate,1) to get the first next workday. If MyDate is a saturday or sunday it will return the date of the next monday, otherwise it will return MyDate. Likewise firstworkingday(MyDate) will get the friday before if MyDate is a saturday or sunday and otherwise return MyDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 18:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388478#M144961</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-31T18:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388479#M144962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for resonding,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have copied my script which works for calculating working hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where would i put the firstworkingday(mydate,1) into the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//The sollution is as follows:&lt;/P&gt;&lt;P&gt;//$1 WorkDayStart. Format 9, 9.5, 21&lt;BR /&gt;//$2 WorkDayEnd.Format 9, 9.5, 21&lt;BR /&gt;//$3 TimeStampStart. Format DateTime&lt;BR /&gt;//$4 TimeStampEnd. Format DateTime&lt;/P&gt;&lt;P&gt;Set fxCalcWorkHours = (($2-$1)*NetWorkDays($3,$4))&amp;nbsp; -(24*(&amp;nbsp; FMOD($3,1)&amp;nbsp; -($1/24)&amp;nbsp; +($2/24)&amp;nbsp; -FMOD($4,1) ));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO xxx ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orders:&lt;BR /&gt;Load Workflow_ID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer_Name,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case_created_date as Start_Date,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case_close_date as close_date,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(fxCalcWorkHours(9,18,case_created_date, case_close_date)) as Case_WorkHoursSpent,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 09:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388479#M144962</guid>
      <dc:creator />
      <dc:date>2012-11-01T09:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388480#M144963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laura,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any reason why you don't try the solution I posted with the first link above? This should handle start and end of your interval even in case of weekend / holidays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 10:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388480#M144963</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-01T10:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388481#M144964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am really struggling to understand the logic, as i am not the best at Qlikview,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible you can explain it too me. the solution i have posted above works but if it is outside office hours or at a weekend then the hours return a negative number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i am looking for is the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 2 dates Case_created_date and case_close_date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working hours are 8am to 6pm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a case is opened outside office hours it will start the calculation from the next working day at 8am. If the case is closed outside working hours it will stop the calculation at the last working day at 6pm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;31-10-2012 19:00:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01-11-2012 10:00:00 i would expect the calculation to return 2 hours.&lt;/P&gt;&lt;P&gt;26-10-2012&amp;nbsp; 14:00:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 28-10-2012 06:00:00 i would expect the calculation to return 4 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me work this out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 10:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388481#M144964</guid>
      <dc:creator />
      <dc:date>2012-11-01T10:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388482#M144965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laura,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no problem, but which specific part of the expression do you have problems with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;Interval(&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;rangesum(&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;NetWorkDays(DT1+1,DT2-1,$(vHol)) * MakeTime(10)&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;// 10 hours per workday, for all day inbetween the period, excluding bounderies&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;,if(NetWorkDays(DT2,DT2,$(vHol)),Rangemin(rangemax(frac(DT2),maketime(8)),maketime(18))-Rangemax(rangemin(frac(DT2),maketime(8)),maketime(8)),0) &lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;// working hours last day&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;,if(NetWorkDays(DT1,DT1,$(vHol)),Rangemin(rangemax(frac(DT1),maketime(18)),maketime(18))-Rangemax(rangemin(frac(DT1),maketime(18)),maketime(8)),0) // working hours first day&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;,if(NetWorkDays(DT1,DT1,$(vHol)) and floor(DT1)=floor(DT2),-MakeTime(10)) &lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;// correct for first equals last day&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;DT1 and DT2 are the field names for the start resp. end timestamp.&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;$(vHol) is a variable that holds your holidays.&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;The magic number Maketime(10) in the first and last argument to rangesum is equal to the number of hours of a full working day (08:00 to 18:00 = 10 hours).&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;In the following statements, maketime(8) and maketime(18) are giving start and end time of the working day, while frac(DT1) and frac(DT2) are giving the actual start and end time of the task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;So above expression should just work fine (maybe remove the holiday argument in the networkdays function, if not needed and replace DT1 and DT2 with your field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Regards,&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 11:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388482#M144965</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-01T11:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388483#M144966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where abouts in the script should this expression be put?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 11:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388483#M144966</guid>
      <dc:creator />
      <dc:date>2012-11-01T11:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388484#M144967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Laura, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use this expression as expression in a chart or as part of the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you can't open others qvw files, because I actually posted a sample file demonstrating all this in the referenced link &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it the script code with some sample mock-up data loaded inline and two fake holidays:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set TimestampFormat = 'M/D/YY hh:mm TT';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set vHol = '41130,41140';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INPUT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *, recno() as ID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Interval(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;rangesum(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NetWorkDays(DT1+1,DT2-1,$(vHol)) * MakeTime(10)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// 10 hours per workday, for all day inbetween the period, excluding bounderies&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,if(NetWorkDays(DT2,DT2,$(vHol)),Rangemin(rangemax(frac(DT2),maketime(8)),maketime(18))-Rangemax(rangemin(frac(DT2),maketime(8)),maketime(8)),0) // working hours last day&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,if(NetWorkDays(DT1,DT1,$(vHol)),Rangemin(rangemax(frac(DT1),maketime(18)),maketime(18))-Rangemax(rangemin(frac(DT1),maketime(18)),maketime(8)),0) // working first day&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,if(NetWorkDays(DT1,DT1,$(vHol)) and floor(DT1)=floor(DT2),-MakeTime(10)) // correct for first equals last day &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;as WorkingHours&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DT1, DT2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;8/9/12 11:08 AM,8/9/12 2:57 PM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;8/8/12 11:08 AM,8/8/12 2:57 PM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;8/18/12 09:20 AM,8/20/12 01:13 PM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;8/17/12 09:20 AM,8/20/12 01:13 PM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;8/17/12 09:20 AM,8/19/12 01:13 PM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;6/27/12 12:41 PM,&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/6/12 4:38 PM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;6/29/12 4:45 PM,&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/6/12 4:19 PM&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;8/1/12 09:00 AM, 8/3/12 10:00 AM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;8/3/12 03:00 PM, 8/6/12 09:00 AM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;8/3/12 06:30 PM, 8/6/12 09:00 AM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;8/3/12 03:00 PM, 8/6/12 07:00 AM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 11:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388484#M144967</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-01T11:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388485#M144968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help it has been really useful. I have got the expression working in the chart. However i have noticed it has dropped records where the start and end time are both at a weekend. i would expect it to bring back a 0. Also it has dropped records where a case is still open and only has a start date. i would just want it to return a blank in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 12:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388485#M144968</guid>
      <dc:creator />
      <dc:date>2012-11-01T12:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388486#M144969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help it has been really useful. I have got the expression working in the chart. However i have noticed it has dropped records where the start and end time are both at a weekend. i would expect it to bring back a 0. Also it has dropped records where a case is still open and only has a start date. i would just want it to return a blank in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 12:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388486#M144969</guid>
      <dc:creator />
      <dc:date>2012-11-01T12:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388487#M144970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding the dropped records: The expression will return zero, these lines will be hidden if 'suppress zero values' is checked in presentation tab of your chart. Uncheck this option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the records with only start date: You can add an if() statement to check if your end date is set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( len(trim(case_closedate)), &lt;/P&gt;&lt;P&gt;.... // here comes the interval calculation&lt;/P&gt;&lt;P&gt;, ' ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 14:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388487#M144970</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-01T14:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388488#M144971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have got this working now which is great thanks very much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My new issue is that for example &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Start Date&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;&amp;nbsp; End Date&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;&amp;nbsp; Calculationof working hours &lt;/P&gt;&lt;P&gt;09.02.12 09:54:39&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11.02.2011 09:14:49&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; 19:20:09&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the correct answer, however i want it to return that it took 1 day 9hrs and 20mins and 09 seconds. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 14:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388488#M144971</guid>
      <dc:creator />
      <dc:date>2012-11-01T14:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388489#M144972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=floor(WorkingHours / maketime(10)) &amp;amp;' days ' &lt;/P&gt;&lt;P&gt;&amp;amp; hour( WorkingHours-floor(WorkingHours,maketime(10)))&amp;amp;' hrs ' &lt;/P&gt;&lt;P&gt;&amp;amp; Minute(WorkingHours-floor(WorkingHours,maketime(10))) &amp;amp;' mins and '&lt;/P&gt;&lt;P&gt;&amp;amp; second(WorkingHours-floor(WorkingHours,maketime(10))) &amp;amp;' seconds'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 14:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388489#M144972</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-01T14:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388490#M144973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats Great thanks very much for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 15:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388490#M144973</guid>
      <dc:creator />
      <dc:date>2012-11-01T15:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388491#M144974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With regards to holidays i see you have called a holiday '41130' do dates have to go in this format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or can i simply set holidays as '25/12/2012', 26/12/2012, '01/01/2013' etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 15:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388491#M144974</guid>
      <dc:creator />
      <dc:date>2012-11-01T15:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388492#M144975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that's your standard date format, it should work (41130 is just the numerical representation of&amp;nbsp; 8/9/12).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set DateFormat = 'DD/MM/YYYY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vHol = '&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;25/12/2012', '26/12/2012', '01/01/2013';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I included each date into single quotes.&lt;/P&gt;&lt;P&gt;Check also &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/131162#131162"&gt;http://community.qlik.com/message/131162&lt;/A&gt;&lt;/P&gt;&lt;P&gt;on how to load the holidays from a table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 16:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388492#M144975</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-01T16:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388493#M144976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, What changes I would need if my total work hours are 20(1:00:00 AM to 22:00 PM)? I tried making the below changes but it didn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Created&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;+1,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[ACK Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;-1) * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;MakeTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(20)&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// 20 hours per workday, for all day inbetween the period, excluding bounderies&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[ACK Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[ACK Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Rangemin&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;rangemax&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;frac&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[ACK Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;maketime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(1)),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;maketime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(22))-&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Rangemax&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;rangemin&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;frac&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[ACK Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;maketime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(1)),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;maketime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(1)),0)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// working hours last day&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Created&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Created&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Rangemin&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;rangemax&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;frac&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Created&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;maketime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(22)),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;maketime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(22))-&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Rangemax&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;rangemin&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;frac&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Created&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;maketime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(22)),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;maketime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(1)),0) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// working hours first day&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Created&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Created&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Created&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[ACK Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),-&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;MakeTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(20))&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// correct for first equals last day&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;BR /&gt; )&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;RspHrs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Please advise. The 2 dates we use are Ack date(DT2) and Created(DT1)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 01:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/388493#M144976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-22T01:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Working hours only</title>
      <link>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/1673721#M449573</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hi Kush,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can you please help me to calculating the time diff between two dates based on given points&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1- First I have to calculate the time weekdays in between 7 Am to 11 PM excluding sat and sun . am using below script for this but prob is that when both the dates are weekend then its also calculate the time diff&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;if(not WildMatch(IssueStatus,'Pending') , (Interval((RangeMin(frac(IssueResolutionDate), MakeTime(23))- RangeMax(frac(IssueCreateDate), MakeTime(7)))+&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;( NetWorkDays(IssueCreateDate, IssueResolutionDate-1) * MakeTime(16)) ))) as TotalTime,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;2-&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;Second I have to calculate the time diff only Weekend Sat or Sun in between 10 Am to 4 PM . also if any dates is weekend and other one is weekday then it calculate the time based on diff time difference .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3- if any ticket open in the last month and closed in next month then it calculate the time as point 1 except if it comes on weekdays .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me to find the correct result&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 05:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-hours-only/m-p/1673721#M449573</guid>
      <dc:creator>ajayvermaida</dc:creator>
      <dc:date>2020-02-10T05:36:26Z</dc:date>
    </item>
  </channel>
</rss>

