<?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 Last Work Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-Work-Date/m-p/610710#M1101961</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;I have a variable vToday = Date(Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a variable which shows the last business day date, based on the above variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought this could be achieved by the following; vLastWorkDay = LastWorkDate(vToday,-1).&amp;nbsp; However this doesn't return any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 15:28:17 GMT</pubDate>
    <dc:creator>danielnevitt</dc:creator>
    <dc:date>2014-04-07T15:28:17Z</dc:date>
    <item>
      <title>Last Work Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Work-Date/m-p/610710#M1101961</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;I have a variable vToday = Date(Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a variable which shows the last business day date, based on the above variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought this could be achieved by the following; vLastWorkDay = LastWorkDate(vToday,-1).&amp;nbsp; However this doesn't return any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Work-Date/m-p/610710#M1101961</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2014-04-07T15:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Last Work Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Work-Date/m-p/610711#M1101962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function LastWorkDate(StartDate, NumberOfDays) returns the last date of a time period starting on the &lt;EM&gt;StartDate&lt;/EM&gt;, and containing &lt;EM&gt;NumberOfDays&lt;/EM&gt; working days (weekends excluded).&lt;/P&gt;&lt;P&gt;It is not clear what you're tying to find.&amp;nbsp; Start date can be today, but the number of working days must be positive.&amp;nbsp; For example you allocate 30 working days for a task, and start day is today, you can find the last business date for that task:&lt;/P&gt;&lt;P&gt;LastWorkDate(today(),30). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 16:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Work-Date/m-p/610711#M1101962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-07T16:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Last Work Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Work-Date/m-p/610712#M1101963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Considering you have working days as Monday to Friday... you can get last work date as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(NUM(WeekDay(Today()))=0,Date(Today()-3),Date(Today()-1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 16:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Work-Date/m-p/610712#M1101963</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-07T16:34:52Z</dc:date>
    </item>
  </channel>
</rss>

