<?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: forcing weekends or holidays into lastworkdate() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/forcing-weekends-or-holidays-into-lastworkdate/m-p/641217#M234903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can tweak lastworkdate() to achieve what you want, but maybe by creating a calendar where you flag the working days, then assigning a consecutive working day number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Retrieving the end date would then indeed just adding number of days to working day number of the start date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2014 10:33:23 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2014-05-21T10:33:23Z</dc:date>
    <item>
      <title>forcing weekends or holidays into lastworkdate()</title>
      <link>https://community.qlik.com/t5/QlikView/forcing-weekends-or-holidays-into-lastworkdate/m-p/641216#M234902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif;"&gt;I have a start date,&amp;nbsp; [number of&amp;nbsp; working days]&amp;nbsp; and need to calculate the end date whilst resppecting the working days betwwen 'startDate' and 'startDate+ [number of&amp;nbsp; working days]'. the function lastworkdate() only calculates &lt;SPAN lang="EN-US" style="font-size: 10pt; mso-ansi-language: EN-US;"&gt;the earliest ending date to acheive &lt;EM&gt;number_of_workdays &lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-fareast-language: JA; mso-bidi-language: AR-SA; line-height: 115%; color: #000000; font-size: 10pt; mso-ansi-language: FR; mso-fareast-theme-font: minor-fareast; font-family: arial,helvetica,sans-serif; mso-fareast-font-family: 'MS Mincho';"&gt;(Monday-Friday) the thing is i can have some workdays on saturdays or sundays too , and that function would not take them into account. is there any work arround for this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-fareast-language: JA; mso-bidi-language: AR-SA; line-height: 115%; color: #000000; font-size: 10pt; mso-ansi-language: FR; mso-fareast-theme-font: minor-fareast; font-family: arial,helvetica,sans-serif; mso-fareast-font-family: 'MS Mincho';"&gt; you will find an example in the attached image in case if saturday 24th is a working day &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-fareast-language: JA; mso-bidi-language: AR-SA; line-height: 115%; color: #000000; font-size: 10pt; mso-ansi-language: FR; mso-fareast-theme-font: minor-fareast; font-family: arial,helvetica,sans-serif; mso-fareast-font-family: 'MS Mincho';"&gt;thank you in advance for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 08:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/forcing-weekends-or-holidays-into-lastworkdate/m-p/641216#M234902</guid>
      <dc:creator />
      <dc:date>2014-05-21T08:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: forcing weekends or holidays into lastworkdate()</title>
      <link>https://community.qlik.com/t5/QlikView/forcing-weekends-or-holidays-into-lastworkdate/m-p/641217#M234903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can tweak lastworkdate() to achieve what you want, but maybe by creating a calendar where you flag the working days, then assigning a consecutive working day number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Retrieving the end date would then indeed just adding number of days to working day number of the start date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 10:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/forcing-weekends-or-holidays-into-lastworkdate/m-p/641217#M234903</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-21T10:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: forcing weekends or holidays into lastworkdate()</title>
      <link>https://community.qlik.com/t5/QlikView/forcing-weekends-or-holidays-into-lastworkdate/m-p/641218#M234904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attachment- an atlernate method. Used expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Date(If(WeekDay(Date+vLastWorkingDateParam-1)&amp;gt;=5,Date+vLastWorkingDateParam-1,LastWorkDate(Date,vLastWorkingDateParam)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might have to modify according to user date system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 11:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/forcing-weekends-or-holidays-into-lastworkdate/m-p/641218#M234904</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-21T11:26:41Z</dc:date>
    </item>
  </channel>
</rss>

