<?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: Worked hours in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012613#M343425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this,&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14562898143163766" jivemacro_uid="_14562898143163766"&gt;
&lt;P&gt;In Time&lt;/P&gt;
&lt;P&gt;Time(Aggr(Min(ReportingTimeIn),prv.Person,ReportingDate),'hh:mm:ss') &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Out Time&lt;/P&gt;
&lt;P&gt;Time(Aggr(Max(ReportingTimeOut),prv.Person,ReportingDate),'hh:mm:ss')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Time Reported&lt;/P&gt;
&lt;P&gt;TIME([Clock out]-[Clock in],'hh:mm:ss')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Feb 2016 04:57:55 GMT</pubDate>
    <dc:creator>HirisH_V7</dc:creator>
    <dc:date>2016-02-24T04:57:55Z</dc:date>
    <item>
      <title>Worked hours</title>
      <link>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012610#M343422</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 have the same problem as some other have had here in the community but I can't get the suggested solutions to work. I want to calculate the number of hours worked each day. It works just fine if they have clocked in and out ONCE a day. But when someone clocks in and out more than ONCE, it breaks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached file. I have selected an employee that has clocked in twice ion the 7th of January. I would like the calculation to be presented in the pivot chart on the left called "CALCULATION".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance - I'm thankful for suggestions! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 22:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012610#M343422</guid>
      <dc:creator />
      <dc:date>2016-02-23T22:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Worked hours</title>
      <link>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012611#M343423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="115716" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115716_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #ff0000;"&gt;&lt;STRONG&gt;Clock In Expression:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time(Min(ReportingTimeIn),'hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Clock Out Expression:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time(Max(ReportingTimeOut),'hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 03:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012611#M343423</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-02-24T03:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Worked hours</title>
      <link>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012612#M343424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clock In =Max(ReportingTimeIn)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clock Out= Max(ReportingTimeOut)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in Number tab select Time for this two expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 04:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012612#M343424</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-02-24T04:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Worked hours</title>
      <link>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012613#M343425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this,&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14562898143163766" jivemacro_uid="_14562898143163766"&gt;
&lt;P&gt;In Time&lt;/P&gt;
&lt;P&gt;Time(Aggr(Min(ReportingTimeIn),prv.Person,ReportingDate),'hh:mm:ss') &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Out Time&lt;/P&gt;
&lt;P&gt;Time(Aggr(Max(ReportingTimeOut),prv.Person,ReportingDate),'hh:mm:ss')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Time Reported&lt;/P&gt;
&lt;P&gt;TIME([Clock out]-[Clock in],'hh:mm:ss')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 04:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012613#M343425</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-02-24T04:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Worked hours</title>
      <link>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012614#M343426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thanks for you response.&lt;/P&gt;&lt;P&gt;Doing it as you describe, I will get a summary from start time to end time. If a person clocks in and out for the first time &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="270"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="93"&gt;06:49:00&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="103"&gt;16:05:00&lt;/TD&gt;&lt;TD align="right" class="xl66" width="74"&gt;09:16:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and then clock in for the second time:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="270"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="93"&gt;19:52:00&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="103"&gt;20:45:00&lt;/TD&gt;&lt;TD align="right" class="xl66" width="74"&gt;00:53:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aggregated time will be 10:09 hours/min and not 13:56 as I understands your solution shows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas in how to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 12:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012614#M343426</guid>
      <dc:creator />
      <dc:date>2016-03-14T12:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Worked hours</title>
      <link>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012615#M343427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculate the difference of TimeOUt and Timein in script and just sum up the difference in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 01:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012615#M343427</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-03-15T01:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Worked hours</title>
      <link>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012616#M343428</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 I already do that, but it shows the wrong summary as I mentioned aboove.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(AttRRepType=3, Time("AttrRepDt_Time"),null()) as ReportingTimeOut,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(AttRRepType=1, Time("AttrRepDt_Time"),null()) as ReportingTimeIn,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Mar 2016 06:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Worked-hours/m-p/1012616#M343428</guid>
      <dc:creator />
      <dc:date>2016-03-19T06:25:29Z</dc:date>
    </item>
  </channel>
</rss>

