<?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 Time attendance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-attendance/m-p/881609#M307594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate total time between the first hours and last hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my chart, I use these expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Hours = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;heure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last Hours = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;heure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total Work = &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarWeekDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='sam.',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Interval&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;heure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;heure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1)),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Interval&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;heure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;heure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1))-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MakeTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(2),'hh:mm:ss')) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's works fine for all employees working in normal hours like 07h AM to 07h PM but I have a problem with all employees working at night like 07h PM to 07h AM (next day). I think this problem is due to the calendar selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two shift from&lt;/P&gt;&lt;P&gt;- 07h AM to 07h PM&lt;/P&gt;&lt;P&gt;- 07h PM to 07h AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I do a selection by date for the 04/20, in my chart the first hour is 05:32:59 AM and the last is 19:01:43 PM but the correct time should be first hour 19:01:43 PM and last hour 05:38:12 AM the next day (04/21).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone have an idea to solve my problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 15:00:43 GMT</pubDate>
    <dc:creator>realpixel</dc:creator>
    <dc:date>2015-05-05T15:00:43Z</dc:date>
    <item>
      <title>Time attendance</title>
      <link>https://community.qlik.com/t5/QlikView/Time-attendance/m-p/881609#M307594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate total time between the first hours and last hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my chart, I use these expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Hours = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;heure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last Hours = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;heure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total Work = &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarWeekDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='sam.',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Interval&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;heure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;heure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1)),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Interval&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;heure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;heure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1))-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MakeTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(2),'hh:mm:ss')) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's works fine for all employees working in normal hours like 07h AM to 07h PM but I have a problem with all employees working at night like 07h PM to 07h AM (next day). I think this problem is due to the calendar selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two shift from&lt;/P&gt;&lt;P&gt;- 07h AM to 07h PM&lt;/P&gt;&lt;P&gt;- 07h PM to 07h AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I do a selection by date for the 04/20, in my chart the first hour is 05:32:59 AM and the last is 19:01:43 PM but the correct time should be first hour 19:01:43 PM and last hour 05:38:12 AM the next day (04/21).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone have an idea to solve my problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 15:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-attendance/m-p/881609#M307594</guid>
      <dc:creator>realpixel</dc:creator>
      <dc:date>2015-05-05T15:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Time attendance</title>
      <link>https://community.qlik.com/t5/QlikView/Time-attendance/m-p/881610#M307595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have to tie date and shift time. So difference will be not between time but between datetime (timestamp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Segey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 15:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-attendance/m-p/881610#M307595</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-05-05T15:06:43Z</dc:date>
    </item>
  </channel>
</rss>

