<?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: Exclude Weekends and Public Holiday in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242705#M863149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;networkdays() is a function &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Returns the number of working days (Monday-Friday) between and including &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;start_date&lt;/SPAN&gt; and &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;end_date&lt;/SPAN&gt; taking into account any optionally listed &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;holidays&lt;/SPAN&gt;. All parameters should be valid dates or timestamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;networkdays&lt;/SPAN&gt; (startdate, enddate, holidaydate1, holidaydate2,holidaydate3,holidaydate4.......)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;for example&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;networkdays&lt;/SPAN&gt; ('2006-12-18', '2006-12-31', '2006-12-25', '2006-12-26')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/message/131162"&gt;Re: function:networkday&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;just go through John attachment .qvw file also. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Dec 2016 09:33:36 GMT</pubDate>
    <dc:creator>ramasaisaksoft</dc:creator>
    <dc:date>2016-12-28T09:33:36Z</dc:date>
    <item>
      <title>Exclude Weekends and Public Holiday</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242704#M863148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached QV app with Leave Date and Public holiday data. The app calculates number of leave days for a specific period and it works fine. However I want to exclude weekends and public holidays as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242704#M863148</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Weekends and Public Holiday</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242705#M863149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;networkdays() is a function &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Returns the number of working days (Monday-Friday) between and including &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;start_date&lt;/SPAN&gt; and &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;end_date&lt;/SPAN&gt; taking into account any optionally listed &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;holidays&lt;/SPAN&gt;. All parameters should be valid dates or timestamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;networkdays&lt;/SPAN&gt; (startdate, enddate, holidaydate1, holidaydate2,holidaydate3,holidaydate4.......)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;for example&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;networkdays&lt;/SPAN&gt; ('2006-12-18', '2006-12-31', '2006-12-25', '2006-12-26')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/message/131162"&gt;Re: function:networkday&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;just go through John attachment .qvw file also. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 09:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242705#M863149</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2016-12-28T09:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Weekends and Public Holiday</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242706#M863150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to generate a holiday list?? If yes then do as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDatMi = Num(MakeDate(2016,1,1));&lt;/P&gt;&lt;P&gt;LET vDatMa = Num(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAL1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date($(vDatMi) + IterNo()) AS&amp;nbsp; ALL_DATE&lt;/P&gt;&lt;P&gt;AUTOGENERATE 1&lt;/P&gt;&lt;P&gt;WHILE $(vDatMi)+IterNo() &amp;lt;= $(vDatMa);&lt;/P&gt;&lt;P&gt;HOLIDAY_WEEKEND:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;if(match(weekday(ALL_DATE),'Sat','Sun'),ALL_DATE) as Holidays&lt;/P&gt;&lt;P&gt;Resident CAL1;&lt;/P&gt;&lt;P&gt;Drop Table CAL1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUBLIC_HOLIDAY_LIST:&lt;/P&gt;&lt;P&gt;//Load&amp;nbsp; your&amp;nbsp; public holiday list here&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;P&gt;This will give you a consolidated Holiday list with weekends and Public holidays&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 09:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242706#M863150</guid>
      <dc:creator>raajaswin</dc:creator>
      <dc:date>2016-12-28T09:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Weekends and Public Holiday</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242707#M863151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to exclude these holidays.. you can use &lt;STRONG&gt;where not exists() &lt;/STRONG&gt;with a resident and achieve this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 09:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242707#M863151</guid>
      <dc:creator>raajaswin</dc:creator>
      <dc:date>2016-12-28T09:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Weekends and Public Holiday</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242708#M863152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aswin,&lt;/P&gt;&lt;P&gt;So the code you provided me with is basically the same as the one which I have in model provided? So the only change which I have to add is :&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HOLIDAY_WEEKEND:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(match(weekday(ALL_DATE),'Sat','Sun'),ALL_DATE) as Holidays&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident CAL1;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Table CAL1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;PUBLIC_HOLIDAY_LIST:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Load&amp;nbsp; your&amp;nbsp; public holiday list here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 09:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242708#M863152</guid>
      <dc:creator />
      <dc:date>2016-12-28T09:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Weekends and Public Holiday</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242709#M863153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May b, try doing that. or provide the app with that sample data to reload&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 10:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-and-Public-Holiday/m-p/1242709#M863153</guid>
      <dc:creator>raajaswin</dc:creator>
      <dc:date>2016-12-28T10:01:53Z</dc:date>
    </item>
  </channel>
</rss>

