Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to find Count of employees by late by interval

Hi,Qlikers

i have emp Table:

Empid,Date,Timein

101,10/1/2015,9:00 AM

102,10/1/2015,9:10 AM

103,10/1/2015,9:05 AM

104,10/1/2015,9:20 AM

105,10/1/2015,9:40 AM

101,10/2/2015,9:15 AM

102,10/2/2015,8:45 AM

103,10/2/2015,9:25 AM

104,10/2/2015,9:35 AM

105,10/2/2015,9:40 AM

101,10/3/2015,9:01 AM

102,10/3/2015,8:55 AM

103,10/3/2015,9:25 AM

104,10/3/2015,9:22 AM

105,10/3/2015,9:45 AM


and

Table2:

LateBy

<5min,

5-10min

10-15min

15-20min

20-30min

>30min

if the user select a date and late by fields(i.e 10/1/2015 ,10-15min) then it has to show how many employees are late by 10-15 min on 10/1/2015


please send me the reply

Thanks in advanse


13 Replies
vikasmahajan

Hi,

Hey don't put duplicate issues in community , Community is Ideal for sharing knowledge,idea's , learning new things

hence request you to not post duplicate issues...

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Not applicable
Author

sorry for repeating

i will never repeat it again thanks for replying

avinashelite

Please mark the correct and helpful answers so that it will helpful for the others also

Not applicable
Author

Here i taken sample data but in my real data

by using the below code

DataInOut: 

LOAD *,

(Hour(Timestamp#(TimeIn,'HH:mm TT'))*60)+(Minute(Timestamp#(TimeIn,'HH:mm TT')))-540 as Late ;

LOAD EmpID,Date,

     Time(Min(TimeData),'HH:mm TT') as TimeIn,

     Time(Max(TimeData),'HH:mm TT') as TimeOut

Resident EmployeeTimeData

Group by  EmpID,Date;

here i am getting timein value but i am not getting Late value

like

Late.PNG