Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help. How to load data

Hello together,

i am quite new to QlikView and i have a big problem:

I have this Data:

IDtimeStatus
106:001<-- check in
208:001<-- check in
115:002<-- check in to break
116:003<-- check out of break
218:000<-- check out
118:000<-- check out

ID ist the ID of a worker

TIME ist when they check in with different STATUS

1: in

0: out

2: in break

3: out of break

How do i get the working time of each worker?!

How do i get the time for each break?!

I would be so glad if you could help me!

In the Attechment my data.

Of course you dont have to do my work.

But maybe someone could help me out with some tags, so i can find the Formulas I need in the help.


Thank you very much!

3 Replies
MEllinghausen
Creator III
Creator III

Hello,

in the first step you must splitt the Field "WHEN" in date and Time in the script.

 

load [UserID],

left([WHEN],10) as Date_Time,

right([WHEN],5) as Time,

INOUT

from ....times.csv

then you  create a table with Dimension ID and formula

 

sum

({<INOUT={'1'}>} Time) - sum({<INOUT={'0'}>} Time) - (sum({<INOUT={'3'}>} Time) - sum({<INOUT={'2'}>} Time))

and change the numberformat to time

Marcus

Not applicable
Author

Vielen Dank!

Thank you very much.

But I still have one Problem with your solution.

Your Formula only works if the worker takes only one break.

How do I handle more breaks?!

FirstSortedValue?!

thx

MEllinghausen
Creator III
Creator III

I think you have a Problem wit the quality of your Data,

e.g. User ID 9 from 14.11.2012   There two states 0

or USERID 6 from 14.11.2012  hase only 0  and so on.

The Formula works.

Marcus