<?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 Exclude Dates from Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-Dates-from-Calculation/m-p/458100#M171025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate the utilization of work done during each week of the year and I have the nr of hours that the employee logs in. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the best way of doing this is by dividing the total logged hours/ Total Hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total hours is always 40 except when there is a holiday and here where I get the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;within the time sheet row I have the Employee name, Sum(logged Hours), Date(Last day of the week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I determine the holidays based on Date(Last day of the week) and exclude them from the 40 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Logged Hours&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Last day of the week)&lt;/P&gt;&lt;P&gt;John Smith&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; May 25 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Knowing that may 24th is a holiday how can I exclude it from the total hours in this script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Utili:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Logged Hours],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40 as [Total Hours],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Last day of the week)&lt;/P&gt;&lt;P&gt;From Table XYZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs,&lt;/P&gt;&lt;P&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jun 2013 20:56:51 GMT</pubDate>
    <dc:creator>alec1982</dc:creator>
    <dc:date>2013-06-10T20:56:51Z</dc:date>
    <item>
      <title>Exclude Dates from Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Dates-from-Calculation/m-p/458100#M171025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate the utilization of work done during each week of the year and I have the nr of hours that the employee logs in. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the best way of doing this is by dividing the total logged hours/ Total Hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total hours is always 40 except when there is a holiday and here where I get the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;within the time sheet row I have the Employee name, Sum(logged Hours), Date(Last day of the week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I determine the holidays based on Date(Last day of the week) and exclude them from the 40 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Logged Hours&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Last day of the week)&lt;/P&gt;&lt;P&gt;John Smith&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; May 25 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Knowing that may 24th is a holiday how can I exclude it from the total hours in this script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Utili:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Logged Hours],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40 as [Total Hours],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Last day of the week)&lt;/P&gt;&lt;P&gt;From Table XYZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs,&lt;/P&gt;&lt;P&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 20:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Dates-from-Calculation/m-p/458100#M171025</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2013-06-10T20:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Dates from Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Dates-from-Calculation/m-p/458101#M171026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your working days are Monday to Friday, 8h a day, you can potentially use networkdays() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;8 * networkdays([Last day of the week]-6, [Last day of the week], makedate(2013,05,24) ) as [Total Hours],&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;From Table XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have multiple holidays in a table, you can use it like demonstrated by John &lt;A _jive_internal="true" href="https://community.qlik.com/message/90025#90025"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 23:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Dates-from-Calculation/m-p/458101#M171026</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-06-10T23:10:04Z</dc:date>
    </item>
  </channel>
</rss>

