Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to set date and check time

Hi All,

i have a problem

i have a table in the dashboard like that

User IDCheck TimeDate
1209/14/2014  11:42:30 PM9/14/2014
1209/15/2014  8:14:23 AM9/15/2014
1209/15/2014  11:47:19 PM9/15/2014
1209/16/2014  8:15:44 AM9/16/2014
1209/16/2014  11:43:54 PM9/16/2014
1209/17/2014  8:14:30 AM9/17/2014

this table is for time attendance

the issue is the user must come at 12:00 pm and make check in and left at 8:00 am and thus make check out

what happened is the user may came earlier than 12:00 pm as shown in the table

he came on day 9/14/2014 at 11:42:30 and left on day 9/15/2014 at 8:14:23

so the first 2 records must be for the same Date not one for 9/14 and the other for 9/15

Also i want to create 2 fields one for Check In and the other for Check Out

i.e i want the output table to be one record for each day

User IDCheck InCheck OutDate
12011:42:30 PM8:14:23 AM9/15/2014
12011:47:19 PM 8:15:44 AM9/16/2014
12011:43:54 PM8:14:30 AM9/17/2014

how to make this in the script or even in the chart??

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw.


talk is cheap, supply exceeds demand
Not applicable
Author

ok,it works for the rows with this issue

but there are rows which are right and i want to keep them

i.e this row

User IDCheck TimeDate
1208/11/2014  12:17:10 AM8/11/2014
1208/11/2014  3:14:29 PM8/11/2014

These rows damaged

your solution solved a part and damaged another

any other help?