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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dividing time records for hours

Hello,

My registration system check in / out records the date / time of arrival and departure of the worker. I intend to find out how many workers there are per hour, to evaluate it. My excell dumps me so


qlik_2.png

As I can do to present it in this way. Thank you


qlik_3.png

4 Replies
sunny_talwar

Create a new Field during your load your data:

LOAD AllOtherFieldNames,

          Hour([Fecha Creacion]) as Hour

FROM Source;

and now use Hour as your dimenion

swuehl
MVP
MVP

I assume you want to get a count of the workers also for the time between check in and check out, when they are present at work.

Here is a similar discussion with some different approaches:

How to count how many people were/are in the building??

Also look at the tech doc written by Henric:

IntervalMatch and Slowly Changing Dimensions

Not applicable
Author

Hi, nice to meet you

Thanks for the information. i´ll to study it

Best regards

DavidFoster1
Specialist
Specialist

Look at WHILE and IterNo() options in the LOAD statement. Using those you could create a table with a record for each person, for each hour they are checked in. That way it is very simple to filter on the hour to see who was checked in at that time.