<?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: Next Working Day in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499283#M691123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi&amp;nbsp; &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="5408" data-externalid="" data-presence="null" data-userid="15823" data-username="swuehl" href="https://community.qlik.com/people/swuehl" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7; text-decoration: underline;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;swuehl&lt;/SPAN&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks for Reply. But I do not want to exclude Saturday. I just want to exclude Sundays and National &amp;amp; Bank Holidays.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you Please tell me the other way to do the same ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !!&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;Regards&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2013 17:11:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-01T17:11:07Z</dc:date>
    <item>
      <title>Next Working Day</title>
      <link>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499281#M691121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi Everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I would like to find next business day(Working day), Which should exclude holidays&amp;nbsp; and sunday get next previous available date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If i am processing Saturady, I should get Monday as working day, if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Monday &lt;/SPAN&gt;is holiday then I should get Thuesday&amp;nbsp; as working day. I hope I am clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I tried following code but could not get the result.&amp;nbsp; I am not sure how to do it in Qlikview load script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;HolidayTAb:&amp;nbsp; &lt;/P&gt;&lt;P&gt;load *&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Inline [Holidate, HolidayName&amp;nbsp; &lt;/P&gt;&lt;P&gt;07/04/2012, Indepence day&amp;nbsp; &lt;/P&gt;&lt;P&gt;09/03/2012, labor day&amp;nbsp; &lt;/P&gt;&lt;P&gt;12/25/2012, X'mas&amp;nbsp; &lt;/P&gt;&lt;P&gt;];&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;let vHolidayLIst=peek('Holidate');&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input Date;&lt;/P&gt;&lt;P&gt;firstworkdate(Date+1, 1, $(vHolidayLIst)) as NextDay,&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date(Date#(20120701,'YYYYMMDD')+RecNo(),'MM/DD/YYYY') AS Date&lt;/P&gt;&lt;P&gt;AUTOGENERATE Today()+30 - MakeDate(2012, 7, 1) + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this Case on 02/07/2012 is Monday, 03/07/2012 is Tueday so I want when I select 03/07/2012 then i will get next working Day it should be 05/07/2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting 04/07/2012 . So any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Any Help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 13:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499281#M691121</guid>
      <dc:creator />
      <dc:date>2013-10-01T13:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Next Working Day</title>
      <link>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499282#M691122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I corrected a few things, including the use of LastWorkDate instead of FirstWorkDate function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET DateFormat='MM/DD/YYYY';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;HolidayTAb: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *, num(Holidate) as NumHolidate&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Inline [Holidate, HolidayName &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;07/04/2012, Indepence day &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;09/03/2012, labor day &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;12/25/2012, X'mas &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;]; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LIST:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD concat(NumHolidate,', ') as HolidateList Resident HolidayTAb;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;let vHolidayLIst=peek('HolidateList', 0, 'LIST'); &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;lastworkdate(Date+1, 1, $(vHolidayLIst)) as NextDay&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date(Date#('20120701','YYYYMMDD')+RecNo()-1,'MM/DD/YYYY') AS Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AUTOGENERATE Today()+30 - MakeDate(2012, 7, 1) + 1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creates your expected result for 03/07/2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the First/LastWorkDate functions assumes working days Mo - Fri (Sa is not a working day), so if this matches your requirement, you can use something like above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 14:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499282#M691122</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-01T14:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Next Working Day</title>
      <link>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499283#M691123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi&amp;nbsp; &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="5408" data-externalid="" data-presence="null" data-userid="15823" data-username="swuehl" href="https://community.qlik.com/people/swuehl" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7; text-decoration: underline;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;swuehl&lt;/SPAN&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks for Reply. But I do not want to exclude Saturday. I just want to exclude Sundays and National &amp;amp; Bank Holidays.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you Please tell me the other way to do the same ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !!&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;Regards&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 17:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499283#M691123</guid>
      <dc:creator />
      <dc:date>2013-10-01T17:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Next Working Day</title>
      <link>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499284#M691124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case it all manual work, something like this (if I didn't messup the syntax):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(weekday(today())=5,&lt;BR /&gt; // today is Saturday&lt;BR /&gt; if(index($(vHolidayList),date(today()+2))&amp;gt;0,&lt;BR /&gt;&amp;nbsp; // Monday is Holiday&lt;BR /&gt;&amp;nbsp; today()+3,&amp;nbsp; // next workday is Tuesday&lt;BR /&gt;&amp;nbsp; // Monday is workday&lt;BR /&gt;&amp;nbsp; today()+2&amp;nbsp;&amp;nbsp; // next workday is Monday&lt;BR /&gt; ),&lt;BR /&gt; // today is not Saturday&lt;BR /&gt; if(index($(vHolidayList),date(today()+1))&amp;gt;0,&lt;BR /&gt;&amp;nbsp; // tomorrow is Holiday&lt;BR /&gt;&amp;nbsp; today()+2,&amp;nbsp; // after tomorrow&lt;BR /&gt;&amp;nbsp; // tomorrow is workday&lt;BR /&gt;&amp;nbsp; today()+1&amp;nbsp;&amp;nbsp; // tomorrow&lt;BR /&gt; )&lt;BR /&gt;)&amp;nbsp; as NextWorkday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming that no Holidays on Saturday/Sunday.&amp;nbsp; It will be more complex with 2-day holidays.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 19:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499284#M691124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-01T19:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Next Working Day</title>
      <link>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499285#M691125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not so optimized, but I think it works&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SET DateFormat='MM/DD/YYYY';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;HolidayTab:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;load *, num(Holidate) as NumHolidate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Inline [Holidate, HolidayName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07/04/2012, Indepence day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;09/03/2012, labor day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;12/25/2012, X'mas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CalendarTmp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; (FlgHoliday or FlgSunday) as FlgNotWorkingDay;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Exists('Holidate',Date) as FlgHoliday,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; (WeekDay(Date) = 'dom') as FlgSunday;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Date(Date#('20120701','YYYYMMDD')+RecNo()-1,'MM/DD/YYYY') AS Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;AUTOGENERATE Today()+30 - MakeDate(2012, 7, 1) + 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;left Join(CalendarTmp)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Date as NextWorkingDay&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;resident CalendarTmp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;where not FlgNotWorkingDay;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Calendar:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; min(NextWorkingDay) as NextWorkingDay&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Resident CalendarTmp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Where Date &amp;lt; NextWorkingDay&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Group by Date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP Table CalendarTmp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 20:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499285#M691125</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-01T20:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Next Working Day</title>
      <link>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499286#M691126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can avoid the cross product and the group by, just using peek() function with calendar sorted reversly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;HolidayTab:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *, num(Holidate) as NumHolidate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Inline [Holidate, HolidayName&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;07/04/2012, Indepence day&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;09/03/2012, labor day&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;12/25/2012, X'mas&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CalendarTmp:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Date, FlgNotWorkingDay,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;STRONG&gt; Date(if(peek(FlgNotWorkingDay), peek(NextWorkingDay), peek(Date))) as NextWorkingDay;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; (FlgHoliday or FlgSunday) as FlgNotWorkingDay;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Exists('Holidate',Date) as FlgHoliday,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; (WeekDay(Date) = 6) as FlgSunday;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Date(Today()+30-Recno()+1) as Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AUTOGENERATE Today()+30 - MakeDate(2012, 7, 1) + 1;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 21:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499286#M691126</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-01T21:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Next Working Day</title>
      <link>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499287#M691127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;, you´re really 'the guy'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 21:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-Working-Day/m-p/499287#M691127</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-01T21:46:04Z</dc:date>
    </item>
  </channel>
</rss>

