<?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 How to exclude Saturday, Sunday &amp; Public holiday? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226669#M78838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;BR /&gt;I'm new in qlikview.&lt;BR /&gt;We has a daily routine using feedback service report (SR).&lt;BR /&gt;SR is a form that will given to customer to fill in.&lt;BR /&gt;Expecting SR will return back to us within 3 days and only valid by counting base on working days (Mon-Fri).&lt;/P&gt;&lt;P&gt;We using Navision MySQL by pulling data from MSSQL&lt;/P&gt;&lt;P&gt;When report has generated from our Navision&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;LOAD&lt;BR /&gt; "Printed SR No_",&lt;BR /&gt; "Date SR Handover to Customer"&lt;BR /&gt; "Date SR Received from Customer";&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM Database$Printing Tracking"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;From above data in expression I just do:&lt;BR /&gt;"Date SR Received from Customer"- "Date SR Handover to Customer" then I will get total days.&lt;/P&gt;&lt;P&gt;But how do I exclude Saturday, Sunday and public holiday?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Oct 2010 07:54:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-04T07:54:09Z</dc:date>
    <item>
      <title>How to exclude Saturday, Sunday &amp; Public holiday?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226669#M78838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;BR /&gt;I'm new in qlikview.&lt;BR /&gt;We has a daily routine using feedback service report (SR).&lt;BR /&gt;SR is a form that will given to customer to fill in.&lt;BR /&gt;Expecting SR will return back to us within 3 days and only valid by counting base on working days (Mon-Fri).&lt;/P&gt;&lt;P&gt;We using Navision MySQL by pulling data from MSSQL&lt;/P&gt;&lt;P&gt;When report has generated from our Navision&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;LOAD&lt;BR /&gt; "Printed SR No_",&lt;BR /&gt; "Date SR Handover to Customer"&lt;BR /&gt; "Date SR Received from Customer";&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM Database$Printing Tracking"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;From above data in expression I just do:&lt;BR /&gt;"Date SR Received from Customer"- "Date SR Handover to Customer" then I will get total days.&lt;/P&gt;&lt;P&gt;But how do I exclude Saturday, Sunday and public holiday?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 07:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226669#M78838</guid>
      <dc:creator />
      <dc:date>2010-10-04T07:54:09Z</dc:date>
    </item>
    <item>
      <title>How to exclude Saturday, Sunday &amp; Public holiday?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226670#M78839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;have a look into the NetWorkDays-function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&amp;lt;h4&amp;gt;networkdays&lt;A id="networkdays" name="networkdays"&gt;&lt;/A&gt; ( start:date, end_date {, holiday} )&amp;lt;/h4&amp;gt;&lt;BR style="margin-bottom:0px;margin-left:40px;background-color:transparent;" /&gt;Returns the number of working days (Monday-Friday) between and including start_date and end_date taking into account any optionally listed holidays. All parameters should be valid dates or timestamps. &amp;lt;h2&amp;gt;Examples:&amp;lt;/h2&amp;gt;&lt;BR style="margin-bottom:0px;margin-left:40px;background-color:transparent;" /&gt;networkdays ('2007-02-19', '2007-03-01') returns 9&lt;BR style="margin-bottom:0px;margin-left:40px;background-color:transparent;" /&gt;networkdays ('2006-12-18', '2006-12-31', '2006-12-25', '2006-12-26') returns 8&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="margin-bottom:0px;margin-left:40px;background-color:transparent;"&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 08:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226670#M78839</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2010-10-04T08:05:52Z</dc:date>
    </item>
    <item>
      <title>How to exclude Saturday, Sunday &amp; Public holiday?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226671#M78840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;P&gt;I have written a short series on the QV working date functions in my blog at &lt;A href="http://yahqblog.blogspot.com/" title="http://yahqblog.blogspot.com/"&gt;http://yahqblog.blogspot.com/&lt;/A&gt;. They might help you in working this out (including how to take public holidays into account).&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 08:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226671#M78840</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-04T08:15:08Z</dc:date>
    </item>
    <item>
      <title>How to exclude Saturday, Sunday &amp; Public holiday?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226672#M78841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at John Witherspoon's example in the following thread:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/p/27558/105413.aspx#105413"&gt;http://community.qlik.com/forums/p/27558/105413.aspx#105413&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Works really well for me when working with holidays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 14:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226672#M78841</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2010-10-04T14:41:25Z</dc:date>
    </item>
    <item>
      <title>How to exclude Saturday, Sunday &amp; Public holiday?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226673#M78842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DEAR ALL,&lt;BR /&gt;Thank you for your contributing answer to my question.&lt;BR /&gt;I need fix to exclude Saturday, Sunday and Public Holiday.&lt;/P&gt;&lt;P&gt;It seem Jonathan Dienst's answered more close to my question, because public holiday will get data from plain excel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, I have question for you Jonathan,&lt;/P&gt;&lt;P&gt;Base on your post blog at &lt;A href="http://yahqblog.blogspot.com/2010/09/qlikview-working-day-functions.html" target="_blank" title="Exclude Saturday, Sunday &amp;amp; Public Holiday"&gt;http://yahqblog.blogspot.com/2010/09/qlikview-working-day-functions.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is a great post! I still not sure how to put in into my qlikview.&lt;/P&gt;&lt;P&gt;On my qlikview script, I made two TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;TAB1:&lt;BR /&gt;LOAD&lt;BR /&gt; "Printed SR No_",&lt;BR /&gt; "Date SR Handover to Customer"&lt;BR /&gt; "Date SR Received from Customer";&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM Database$Printing Tracking"&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;TAB2:&lt;BR /&gt;tmpHoliday:&lt;BR /&gt;LOAD Date([DATE], 'dd-MM-yyyy') as Date&lt;BR /&gt;FROM [..\QVDATA\Public Holidays.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;&lt;BR /&gt;tmpConcat:&lt;BR /&gt;LOAD concat(chr(39) &amp;amp; Date &amp;amp; chr(39),',') AS HolidayDates&lt;BR /&gt;RESIDENT tmpHoliday;&lt;BR /&gt;&lt;BR /&gt;Let vPublicHolidays = fieldvalue('HolidayDates',1);&lt;BR /&gt;&lt;BR /&gt;DROP TABLE tmpHoliday;&lt;BR /&gt;DROP TABLE tmpConcat;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;On my expression&lt;/P&gt;&lt;P&gt;From above data I create a chart table with dimension using "Printed SR No_",&lt;BR /&gt;And under expression I do:&lt;BR /&gt;"Date SR Received from Customer"- "Date SR Handover to Customer" then I will get total days.&lt;/P&gt;&lt;P&gt;To exclude Saturday, Sunday and public holiday where do I put this condition:&lt;BR /&gt;=NetWorkDays(MonthStart(Today()), Today(), $(vPublicHolidays)) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 02:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226673#M78842</guid>
      <dc:creator />
      <dc:date>2010-10-05T02:07:30Z</dc:date>
    </item>
    <item>
      <title>How to exclude Saturday, Sunday &amp; Public holiday?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226674#M78843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jonathan,&lt;BR /&gt;&lt;BR /&gt;When I reload the script it give me an error:&lt;BR /&gt;&lt;BR /&gt;Error in expression:&lt;BR /&gt;CONCAT is not a valid function&lt;BR /&gt;&lt;BR /&gt;What could be wrong? I'm using Qlikview version 7 at the moment.&lt;BR /&gt;I couldn't find CONCAT function on help either.&lt;BR /&gt;&lt;BR /&gt;Frenky&lt;BR /&gt;&lt;BR /&gt;I had change a bit the function on script as follow:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;tmpHoliday:&lt;BR /&gt;LOAD Date([DATE], 'dd-MM-yyyy') as WorkingDate&lt;BR /&gt;FROM [%HOMEDRIVE%%HOMEPATH%\Excel\PublicHolidays.csv] (ansi, txt, delimiter is ',', embedded labels);&lt;BR /&gt;&lt;BR /&gt;tmpConcat:&lt;BR /&gt;LOAD concat(chr(39) &amp;amp; WorkingDate &amp;amp; chr(39),',') AS HolidayDates&lt;BR /&gt;RESIDENT tmpHoliday;&lt;BR /&gt;&lt;BR /&gt;Let vPublicHolidays = fieldvalue('HolidayDates',1);&lt;BR /&gt;&lt;BR /&gt;DROP TABLE tmpHoliday;&lt;BR /&gt;DROP TABLE tmpConcat;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 06:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226674#M78843</guid>
      <dc:creator />
      <dc:date>2010-10-14T06:17:38Z</dc:date>
    </item>
    <item>
      <title>How to exclude Saturday, Sunday &amp; Public holiday?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226675#M78844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;P&gt;Glad you found the blog post helpful.&lt;/P&gt;&lt;P&gt;I am afraid that the concat function is valid in V9, but apparently not in V7. I suggest that you consider upgrading to a more recent version.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 08:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226675#M78844</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-14T08:02:43Z</dc:date>
    </item>
    <item>
      <title>How to exclude Saturday, Sunday &amp; Public holiday?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226676#M78845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it, still possible to work with it version 7 instead?&lt;/P&gt;&lt;P&gt;I'm really dead end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 08:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226676#M78845</guid>
      <dc:creator />
      <dc:date>2010-10-14T08:58:44Z</dc:date>
    </item>
    <item>
      <title>How to exclude Saturday, Sunday &amp; Public holiday?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226677#M78846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;P&gt;The CONCAT function joins together all the field values using the second parameter as a delimiter. You could write your own I suppose, or construct it outside QV and read it from a text file.&lt;/P&gt;&lt;P&gt;What the function does is construct the list of quoted dates that will be considered non working days - in this format:&lt;/P&gt;&lt;P&gt;'2010/01/01', '2010/03/21', '2010/04/10', ..... '2010/12/25','2010/12/26'&lt;/P&gt;&lt;P&gt;But does QV7 support the NetWorkDays / FirstWorkDate / LastWorkDate functions?&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 10:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226677#M78846</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-14T10:23:36Z</dc:date>
    </item>
    <item>
      <title>How to exclude Saturday, Sunday &amp; Public holiday?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226678#M78847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Frank wrote:Is it, still possible to work with it version 7 instead?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The solution I posted in the thread mentioned earlier doesn't use concat(). It probably SHOULD, as that would be simpler and more efficient that the loop I used. But it doesn't, so perhaps it will work with version 7.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 01:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226678#M78847</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-15T01:37:13Z</dc:date>
    </item>
    <item>
      <title>How to exclude Saturday, Sunday &amp; Public holiday?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226679#M78848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think the concat() function should be used in the above solution code and also secod loop does not require.&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;A href="http://www.checkthatcompany.co.uk/home.shtml"&gt;buy company reports online&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 05:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-Saturday-Sunday-Public-holiday/m-p/226679#M78848</guid>
      <dc:creator />
      <dc:date>2010-10-15T05:57:06Z</dc:date>
    </item>
  </channel>
</rss>

