<?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 Building Working Hours Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Building-Working-Hours-Calendar/m-p/815179#M287498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to build a table that has the daily working hours for each Facility, Shift and Date in my source table and I'm not sure how to go about doing it.&amp;nbsp; The source table has records with fields:&amp;nbsp; Facility, Shift, ScheduleIndicator, Date and Hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how it looks:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/78214_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;The ScheduleIndicator field is of particular importance because if determines whether the record is a one-time record or a repeating record.&amp;nbsp; Here is the translation table for ScheduleIndicator:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/78270_pastedImage_7.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;If the ScheduleIndicator field is 0, then all records get the number of hours indicated.&amp;nbsp; If the ScheduleIndicator is 1-7, then each day of the week (Monday-Friday respectively) gets that number of hours and if the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ScheduleIndicator is 9, then that specific date gets the number of hours indicated (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;ScheduleIndicator = 1-7 or 9 is an override value that overrides the default set in the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ScheduleIndicator = 0 record&lt;/SPAN&gt; )&lt;/SPAN&gt;.&amp;nbsp; The Date for &lt;SPAN style="font-size: 13.3333330154419px;"&gt;S&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;cheduleIndicator values 0-7 does not matter and is always displayed as 1/1/1900 since these are repeating date records. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Because the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ScheduleIndicator = 0 records sets the default number of hours, the load table will be missing some records where the value of the default record is accepted and not overridden (See the gap between 1/9 and 1/4 in the sample above)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is to build a table with fields &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Facility, Shift, Date and Hours where the value of Hours is equal to the Hours value when &lt;SPAN style="font-size: 13.3333330154419px;"&gt;S&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;cheduleIndicator = 0 (for all dates) unless there is a record for the same &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Facility, Shift where &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ScheduleIndicator is 1-7, or 9 and then the hours will be equal to that value.&amp;nbsp; I'm guessing I need to read the max and min values of Date excluding 1/1/1900 for a date range.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a sample of the source file for one Facility&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2015 19:25:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-16T19:25:26Z</dc:date>
    <item>
      <title>Building Working Hours Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Building-Working-Hours-Calendar/m-p/815179#M287498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to build a table that has the daily working hours for each Facility, Shift and Date in my source table and I'm not sure how to go about doing it.&amp;nbsp; The source table has records with fields:&amp;nbsp; Facility, Shift, ScheduleIndicator, Date and Hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how it looks:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/78214_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;The ScheduleIndicator field is of particular importance because if determines whether the record is a one-time record or a repeating record.&amp;nbsp; Here is the translation table for ScheduleIndicator:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/78270_pastedImage_7.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;If the ScheduleIndicator field is 0, then all records get the number of hours indicated.&amp;nbsp; If the ScheduleIndicator is 1-7, then each day of the week (Monday-Friday respectively) gets that number of hours and if the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ScheduleIndicator is 9, then that specific date gets the number of hours indicated (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;ScheduleIndicator = 1-7 or 9 is an override value that overrides the default set in the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ScheduleIndicator = 0 record&lt;/SPAN&gt; )&lt;/SPAN&gt;.&amp;nbsp; The Date for &lt;SPAN style="font-size: 13.3333330154419px;"&gt;S&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;cheduleIndicator values 0-7 does not matter and is always displayed as 1/1/1900 since these are repeating date records. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Because the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ScheduleIndicator = 0 records sets the default number of hours, the load table will be missing some records where the value of the default record is accepted and not overridden (See the gap between 1/9 and 1/4 in the sample above)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is to build a table with fields &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Facility, Shift, Date and Hours where the value of Hours is equal to the Hours value when &lt;SPAN style="font-size: 13.3333330154419px;"&gt;S&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;cheduleIndicator = 0 (for all dates) unless there is a record for the same &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Facility, Shift where &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ScheduleIndicator is 1-7, or 9 and then the hours will be equal to that value.&amp;nbsp; I'm guessing I need to read the max and min values of Date excluding 1/1/1900 for a date range.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a sample of the source file for one Facility&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 19:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-Working-Hours-Calendar/m-p/815179#M287498</guid>
      <dc:creator />
      <dc:date>2015-02-16T19:25:26Z</dc:date>
    </item>
  </channel>
</rss>

