<?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: How to select a work crew from an alternative work schedule in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-select-a-work-crew-from-an-alternative-work-schedule/m-p/1759362#M590609</link>
    <description>&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;P&gt;If(WeekDay(FieldName)='Mon' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew A',&lt;BR /&gt;If(WeekDay(FieldName)='Mon' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew C',&lt;BR /&gt;If(WeekDay(FieldName)='Tue' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew A',&lt;BR /&gt;If(WeekDay(FieldName)='Tue' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew B',&lt;BR /&gt;If(WeekDay(FieldName)='Wed' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew A',&lt;BR /&gt;If(WeekDay(FieldName)='Wed' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew B',&lt;BR /&gt;If(WeekDay(FieldName)='Thu' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew A',&lt;BR /&gt;If(WeekDay(FieldName)='Thu' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew B',&lt;BR /&gt;If(WeekDay(FieldName)='Fri' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew C',&lt;BR /&gt;If(WeekDay(FieldName)='Fri' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew B',&lt;BR /&gt;If(WeekDay(FieldName)='Sat' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew C',&lt;BR /&gt;If(WeekDay(FieldName)='Sat' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew SS',&lt;BR /&gt;If(WeekDay(FieldName)='Sun' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew SS,&lt;BR /&gt;If(WeekDay(FieldName)='Sun' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew C'))))))))))))))&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 14:56:32 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2020-11-06T14:56:32Z</dc:date>
    <item>
      <title>How to select a work crew from an alternative work schedule</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-a-work-crew-from-an-alternative-work-schedule/m-p/1759340#M590607</link>
      <description>&lt;P&gt;Hello, I am a beginner qlikview and having trouble&amp;nbsp; selecting a work crew from an alternative work schedule.&amp;nbsp; Here is the schedule:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Monday 6am to 5:59pm = Crew A,&amp;nbsp; 6pm to 5:59am = Crew C&lt;/LI&gt;&lt;LI&gt;Tuesday&amp;nbsp;6am to 5:59pm = Crew A,&amp;nbsp; 6pm to 5:59am = Crew B&lt;/LI&gt;&lt;LI&gt;Wednesday&amp;nbsp;6am to 5:59pm = Crew A,&amp;nbsp; 6pm to 5:59am = Crew B&lt;/LI&gt;&lt;LI&gt;Thursday&amp;nbsp;6am to 5:59pm = Crew A,&amp;nbsp; 6pm to 5:59am = Crew B&lt;/LI&gt;&lt;LI&gt;Friday&amp;nbsp;6am to 5:59pm = Crew C,&amp;nbsp; 6pm to 5:59am = Crew B&lt;/LI&gt;&lt;LI&gt;Saturday&amp;nbsp;6am to 5:59pm = Crew C,&amp;nbsp; 6pm to 5:59am = Crew SS&lt;/LI&gt;&lt;LI&gt;Sunday&amp;nbsp;6am to 5:59pm = Crew SS,&amp;nbsp; 6pm to 5:59am = Crew C&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here's what I have tried:&lt;/P&gt;&lt;P&gt;=If(Match([Day_Name],'Mon'),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If(Match([SHIFT],2),'A-Crew','C-Crew'),&lt;BR /&gt;If(Match([Day_Name],'Tue','Wed','Thu'),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If(Match([SHIFT],2),'A-Crew','B-Crew'),&lt;BR /&gt;If(Match([Day_Name],'Fri'),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If(Match([SHIFT],2),'C-Crew','B-Crew'),&lt;BR /&gt;If(Match([Day_Name],'Sat'),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If(Match([SHIFT],2),'C-Crew','SS-Crew'),&lt;BR /&gt;If(Match([Day_Name],'Sun'),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If(Match([SHIFT],2),'SS-Crew','C-Crew'))))))&lt;/P&gt;&lt;P&gt;but since the late crew spills into the next day,&amp;nbsp; the values are wrong.&lt;/P&gt;&lt;P&gt;Any help would be appreciated. ☺&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 13:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-a-work-crew-from-an-alternative-work-schedule/m-p/1759340#M590607</guid>
      <dc:creator>fuson</dc:creator>
      <dc:date>2020-11-06T13:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to select a work crew from an alternative work schedule</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-a-work-crew-from-an-alternative-work-schedule/m-p/1759362#M590609</link>
      <description>&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;P&gt;If(WeekDay(FieldName)='Mon' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew A',&lt;BR /&gt;If(WeekDay(FieldName)='Mon' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew C',&lt;BR /&gt;If(WeekDay(FieldName)='Tue' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew A',&lt;BR /&gt;If(WeekDay(FieldName)='Tue' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew B',&lt;BR /&gt;If(WeekDay(FieldName)='Wed' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew A',&lt;BR /&gt;If(WeekDay(FieldName)='Wed' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew B',&lt;BR /&gt;If(WeekDay(FieldName)='Thu' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew A',&lt;BR /&gt;If(WeekDay(FieldName)='Thu' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew B',&lt;BR /&gt;If(WeekDay(FieldName)='Fri' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew C',&lt;BR /&gt;If(WeekDay(FieldName)='Fri' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew B',&lt;BR /&gt;If(WeekDay(FieldName)='Sat' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew C',&lt;BR /&gt;If(WeekDay(FieldName)='Sat' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew SS',&lt;BR /&gt;If(WeekDay(FieldName)='Sun' and Time(FieldName,'hh:mm')&amp;gt;='06:00' and Time(FieldName,'hh:mm')&amp;lt;='17:59', 'Crew SS,&lt;BR /&gt;If(WeekDay(FieldName)='Sun' and Time(FieldName,'hh:mm')&amp;gt;='18:00' and Time(FieldName,'hh:mm')&amp;lt;='05:59', 'Crew C'))))))))))))))&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 14:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-a-work-crew-from-an-alternative-work-schedule/m-p/1759362#M590609</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2020-11-06T14:56:32Z</dc:date>
    </item>
  </channel>
</rss>

