<?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 Add Working Days to a date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408763#M33024</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;Is there any function to add working days?&lt;/P&gt;&lt;P&gt;The function should do the same as Excel function Workday(date, workingDaysToAdd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried lastworkdate() function, but the function doesn't return the same results as Excel Workday()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;qlik: lastworkdate(date, 5)&lt;/P&gt;&lt;P&gt;excel: workday(date, 5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 274px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="69"&gt;date&lt;/TD&gt;&lt;TD width="90"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qlik &lt;/TD&gt;&lt;TD width="115"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; excel &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;25-Mar-17&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;31-Mar-17&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;31-Mar-17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;26-Mar-17&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;31-Mar-17&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;31-Mar-17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;27-Mar-17&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;&lt;STRONG&gt;31-Mar-17&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;&lt;STRONG&gt;3-Apr-17&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Nov 2017 10:29:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-03T10:29:30Z</dc:date>
    <item>
      <title>Add Working Days to a date</title>
      <link>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408763#M33024</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;Is there any function to add working days?&lt;/P&gt;&lt;P&gt;The function should do the same as Excel function Workday(date, workingDaysToAdd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried lastworkdate() function, but the function doesn't return the same results as Excel Workday()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;qlik: lastworkdate(date, 5)&lt;/P&gt;&lt;P&gt;excel: workday(date, 5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 274px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="69"&gt;date&lt;/TD&gt;&lt;TD width="90"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qlik &lt;/TD&gt;&lt;TD width="115"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; excel &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;25-Mar-17&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;31-Mar-17&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;31-Mar-17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;26-Mar-17&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;31-Mar-17&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;31-Mar-17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;27-Mar-17&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;&lt;STRONG&gt;31-Mar-17&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;&lt;STRONG&gt;3-Apr-17&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 10:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408763#M33024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-03T10:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add Working Days to a date</title>
      <link>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408764#M33025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Weekday(date)=Sun or Weekday(date)=Sat, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;lastworkdate(date, 5), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;lastworkdate(date, 5+1))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Pratyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 10:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408764#M33025</guid>
      <dc:creator>prat1507</dc:creator>
      <dc:date>2017-11-03T10:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add Working Days to a date</title>
      <link>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408765#M33026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=WORKDAY(Date,5) - Will not consider the date and show fifth working day from the Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=lastworkdate (Date, 5)&amp;nbsp;&amp;nbsp; = Will check the date is Holiday or not first if yes it will consider that also and show the fifth date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 11:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408765#M33026</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2017-11-03T11:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add Working Days to a date</title>
      <link>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408766#M33027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like Qlik is including 27th, where as Excel might be starting the count from 28th... it's just the matter of what you want... may be all you want is this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LastWorkDay(date+1, 5)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 11:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408766#M33027</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-03T11:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add Working Days to a date</title>
      <link>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408767#M33028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realized it works only for positive numbers.&lt;/P&gt;&lt;P&gt;Any solution for negative numbers? I mean something like lastworkday(date, -5)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 14:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408767#M33028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-03T14:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add Working Days to a date</title>
      <link>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408768#M33029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, btw it seems you missed single quotes signs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;if(Weekday(date)='Sun' or Weekday(date)='Sat', &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;lastworkdate(date, 5), &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;lastworkdate(date, 5+1))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;btw, Instead of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Weekday(date)='Sun'&lt;/STRONG&gt; it's more safely to use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Weekday(date)=6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 14:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408768#M33029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-03T14:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add Working Days to a date</title>
      <link>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408769#M33030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if FirstWorkDay() works for that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;FirstWorkDay&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(date, 5)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 14:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408769#M33030</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-03T14:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add Working Days to a date</title>
      <link>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408770#M33031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that for negative numbers we have to use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FirstWorkDay&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(date-1, 5)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;That's really bad we have to use two different functions for (basically) the same.&lt;/P&gt;&lt;P&gt;Excel is better again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 09:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-Working-Days-to-a-date/m-p/1408770#M33031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-08T09:42:14Z</dc:date>
    </item>
  </channel>
</rss>

