<?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: Work Week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1602408#M738455</link>
    <description>&lt;P&gt;This works perfectly, thank you so much for all your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2019 16:06:30 GMT</pubDate>
    <dc:creator>khaycock</dc:creator>
    <dc:date>2019-07-15T16:06:30Z</dc:date>
    <item>
      <title>Work Week</title>
      <link>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1595607#M738445</link>
      <description>&lt;P&gt;Is there any way to exclude all Saturday's and Sunday's from my date to make it a Monday-Friday work week?&lt;/P&gt;&lt;P&gt;I have two date fields and I want to calculate the difference between them as a plus or minus working days&lt;/P&gt;&lt;P&gt;Planned Date - Actual Date AS Working Days&lt;/P&gt;&lt;P&gt;At the moment it works fine but will sum all days when I want just Monday-Friday to be calculated&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1595607#M738445</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2024-11-16T03:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Work Week</title>
      <link>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1595656#M738446</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/13826"&gt;@khaycock&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You an use the NetWorkDays() function to get what you're looking for. See more in the thread below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Date-Diff-Working-Days-Only/td-p/172344" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Development/Date-Diff-Working-Days-Only/td-p/172344&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 12:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1595656#M738446</guid>
      <dc:creator>awaisqureshi</dc:creator>
      <dc:date>2019-06-25T12:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Work Week</title>
      <link>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1600409#M738447</link>
      <description>&lt;P&gt;How do I use this in an expression?&lt;/P&gt;&lt;P&gt;I have two date fields Date 1 and Date 2 and I want to know the difference between them in working days.&lt;/P&gt;&lt;P&gt;I'm not sure how to use the network days function with a subtraction?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1600409#M738447</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-07-09T13:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Work Week</title>
      <link>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1600415#M738448</link>
      <description>&lt;DIV class="lia-message-body-content"&gt;The net work days function will do the subtraction for you.&amp;nbsp; Lets say date1 is your start date and date2 is your end date then you can use the following expression to get the difference in only workdays. &amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-body-content"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-body-content"&gt;networkdays(date1,date2) as date_diff&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1600415#M738448</guid>
      <dc:creator>awaisqureshi</dc:creator>
      <dc:date>2019-07-09T13:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Work Week</title>
      <link>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1600421#M738449</link>
      <description>&lt;P&gt;I think I have it working but it doesn't seem to do minus numbers when Date 2 is earlier than Date 1. E.g. I have Date 1 as 7th Jan 2019 but Date 2 as 12th Dec 2018. I would expect the number to be -19 but it displays 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can swap the two dates around and it gives me +19 but ideally I would have it showing as -19 as it shows the item was delivered 19 days early.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1600421#M738449</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-07-09T13:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Work Week</title>
      <link>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1600423#M738450</link>
      <description>&lt;P&gt;You can try use an if statement.&lt;/P&gt;&lt;P&gt;if (Date2&amp;lt;Date1, networkdays(Date1,Date2)*-1, networkdays(Date1,Date2))&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1600423#M738450</guid>
      <dc:creator>awaisqureshi</dc:creator>
      <dc:date>2019-07-09T13:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Work Week</title>
      <link>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1600428#M738451</link>
      <description>&lt;P&gt;It doesn't like the first part of the IF statement. I get an error for the greater than section for some reason? I tested with a simple..&lt;/P&gt;&lt;P&gt;if([Date 1]&amp;lt;[Date 2], 'Yes', 'No')&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it still didn't work so I think there is an issue with that part?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1600428#M738451</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-07-09T13:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Work Week</title>
      <link>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1600436#M738452</link>
      <description>&lt;P&gt;Depending on the data you probably need an aggregation around the dates. For example using the data below, if you use the expression with Customer as the dimension it would not work because there are multiple date1 and date2 per customer. If you used Order as the dimension then it would work because you have one Date 1 and Date2 per order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Order&lt;/TD&gt;&lt;TD&gt;Date1&lt;/TD&gt;&lt;TD&gt;Date2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1/1/2000&lt;/TD&gt;&lt;TD&gt;1/2/2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2/1/2000&lt;/TD&gt;&lt;TD&gt;2/2/2000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1600436#M738452</guid>
      <dc:creator>awaisqureshi</dc:creator>
      <dc:date>2019-07-09T13:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Work Week</title>
      <link>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1602404#M738453</link>
      <description>&lt;P&gt;Okay so I've managed to get it working. However the network days thing counts one of the dates as one day. In the below screenshot you can see its calculated the difference between 4/19 and 4/18 to be -2, when actually I would expect it to be -1.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="days.PNG" style="width: 555px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15453i828E22789F7EB2D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="days.PNG" alt="days.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to change this?&lt;/P&gt;&lt;P&gt;This is the current statement:&lt;/P&gt;&lt;P&gt;if(ActualDaysDifference = '0', ActualDaysDifference,if(ActualDeliveryDate&amp;lt;PlannedDeliveryDate, networkdays(ActualDeliveryDate,PlannedDeliveryDate)*-1, WorkingDaysDifference)) AS DaysDifferenceAgain&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 15:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1602404#M738453</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-07-15T15:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Work Week</title>
      <link>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1602406#M738454</link>
      <description>&lt;P&gt;Glad you got it to work, to overcome that issue I would add a plus/minus 1 to you if statement.&amp;nbsp; See the changes in bold below. Hope that gets you what you need!&lt;/P&gt;&lt;P&gt;if(ActualDaysDifference = '0', ActualDaysDifference,if(ActualDeliveryDate&amp;lt;PlannedDeliveryDate, networkdays(ActualDeliveryDate,PlannedDeliveryDate)*-1&lt;STRONG&gt; + 1&lt;/STRONG&gt;, WorkingDaysDifference&lt;STRONG&gt; - 1&lt;/STRONG&gt;)) AS DaysDifferenceAgain&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 15:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1602406#M738454</guid>
      <dc:creator>awaisqureshi</dc:creator>
      <dc:date>2019-07-15T15:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Work Week</title>
      <link>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1602408#M738455</link>
      <description>&lt;P&gt;This works perfectly, thank you so much for all your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 16:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-Week/m-p/1602408#M738455</guid>
      <dc:creator>khaycock</dc:creator>
      <dc:date>2019-07-15T16:06:30Z</dc:date>
    </item>
  </channel>
</rss>

