<?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 Remove weekend days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250726#M711600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pat and Krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Pat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer. I was not clear. sorry for that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="GIDates.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/4833_GIDates.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I have two Dates like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need now to remove the Dates which are Holidays or weekends, when calculating the differences. &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;05-05-2011(DD.MM.YYYY) is the PlannedGoodsIssueDate and 09-05-2011 is the ActualGoodsIssueDate&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;it means, the difference is only 2 days(06-05-2011 and 09-05-2011) as 08.05.2011 and 09.05.2011 are Saturday and Sunday. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shows 3 Days when implemented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I understanding something wrong??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2011 10:35:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-31T10:35:23Z</dc:date>
    <item>
      <title>Remove weekend days</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250721#M711595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two days in a table..&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableX:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;PlannedGoodsIssueDate,&lt;/P&gt;&lt;P&gt;ActualGoodsIssueDate&lt;/P&gt;&lt;P&gt;From X;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this table I need to find the delay in Service Performance. That means the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt; Difference =&amp;nbsp; ActualGoodsIssueDate - PlannedGoodsIssueDate&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is easy. Now my problem..&lt;/P&gt;&lt;P&gt;I need to remove the weekends from the dates which are between ActualGoodsIssueDate and PlannedGoodsIssueDate because they are not counted.&lt;/P&gt;&lt;P&gt;Any Idea how to get that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 15:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250721#M711595</guid>
      <dc:creator />
      <dc:date>2011-05-30T15:59:10Z</dc:date>
    </item>
    <item>
      <title>Remove weekend days</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250722#M711596</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;&lt;/P&gt;&lt;P&gt;have you tried the function Networkdays()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;networkdays ( start:date, end_date {, holiday} )&lt;BR /&gt;Returns the number of working days (Monday-Friday) between and including start_date and end_date taking into account any optionally listed holidays. All parameters should be valid dates or timestamps.&lt;/P&gt;&lt;P&gt;Examples:&lt;BR /&gt;networkdays ('2007-02-19', '2007-03-01')&amp;nbsp;&amp;nbsp; returns 9&lt;/P&gt;&lt;P&gt;networkdays ('2006-12-18', '2006-12-31', '2006-12-25', '2006-12-26')&amp;nbsp;&amp;nbsp; returns 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 16:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250722#M711596</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-05-30T16:02:43Z</dc:date>
    </item>
    <item>
      <title>Remove weekend days</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250723#M711597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Networkdays gives the No of Holidays but it does not help in my case. When I am subtracting the dates, I need to find whether it is a weekend day and ignore if it is saturday or sunday..&lt;/P&gt;&lt;P&gt;I hope you understand what I am after...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 16:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250723#M711597</guid>
      <dc:creator />
      <dc:date>2011-05-30T16:06:40Z</dc:date>
    </item>
    <item>
      <title>Remove weekend days</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250724#M711598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H4 style="background-color: #c0c0c0;"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;networkdays&lt;/SPAN&gt;&lt;A name="kanchor523"&gt;&lt;/A&gt;&lt;A name="networkdays"&gt;&lt;/A&gt; ( &lt;SPAN style="font-style: italic;"&gt;start_date, end_date {, holiday}&lt;/SPAN&gt; )&lt;/H4&gt;&lt;P&gt;Returns the number of working days (Monday-Friday) between and including &lt;SPAN style="font-style: italic;"&gt;start_date&lt;/SPAN&gt; and &lt;SPAN style="font-style: italic;"&gt;end_date&lt;/SPAN&gt; taking into account any optionally listed &lt;SPAN style="font-style: italic;"&gt;holidays&lt;/SPAN&gt;. All parameters should be valid dates or timestamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to check if your start_date and/or end_date falls on a weekend and want to use previous or later workday, you&amp;nbsp; may try the functions firstworkdate and/or lastworkdate with your dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. networkdays(firstworkdate(start_date,1) - lastworkdate(end_date,1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 16:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250724#M711598</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-05-30T16:29:15Z</dc:date>
    </item>
    <item>
      <title>Remove weekend days</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250725#M711599</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;networkdays definitely looks like the answer. Check this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="networkdays.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/4830_networkdays.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 07:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250725#M711599</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-05-31T07:13:59Z</dc:date>
    </item>
    <item>
      <title>Remove weekend days</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250726#M711600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pat and Krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Pat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer. I was not clear. sorry for that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="GIDates.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/4833_GIDates.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I have two Dates like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need now to remove the Dates which are Holidays or weekends, when calculating the differences. &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;05-05-2011(DD.MM.YYYY) is the PlannedGoodsIssueDate and 09-05-2011 is the ActualGoodsIssueDate&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;it means, the difference is only 2 days(06-05-2011 and 09-05-2011) as 08.05.2011 and 09.05.2011 are Saturday and Sunday. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shows 3 Days when implemented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I understanding something wrong??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 10:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250726#M711600</guid>
      <dc:creator />
      <dc:date>2011-05-31T10:35:23Z</dc:date>
    </item>
    <item>
      <title>Remove weekend days</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250727#M711601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi Sravan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;taking your example you want to exclude the first day if I understand correctly. For example if the Planned GoodsIssue and the ActualGoodsIssue happen on the same day then the answer you want is zero. networkdays() on its own would show thsi as 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't you simply then subtract 1 from the answer delivered by sung the function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=networkdays(date( PlannedGoodsIssueDate),date(ActualGoodsIssueDate))-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how does that look?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 10:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-weekend-days/m-p/250727#M711601</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-05-31T10:48:54Z</dc:date>
    </item>
  </channel>
</rss>

