Forum

Number of employees...
 
Notifications
Clear all

[Solved] Number of employees hourly

4 Posts
2 Users
0 Reactions
57 Views
(@erik_h_dk)
Posts: 42
Trusted Member
Topic starter
 

Hi 

I have been struggling to find a way to display data about the company's staff by hour.

In 2 weeks time the company I work for is going to start on a rather big project, and I must find a way to show progress and a count of employees by date and hour, their production line and department. 

The attached file has some dummy data with shift start and end, number of employees the spefic shift, and I made a simple table showing date, hour over a 2 week period of time.

I have tried a number of solutions found on the web, but I haven't found a solution yet, so I hope someone in here can help. 

 

Thank you

Erik

 

 
Posted : 04/06/2025 2:41 am
Riny van Eekelen
(@riny)
Posts: 1233
Member Moderator
 

@erik_h_dk

I note that you started creating a data model, though am not sure if that's needed just for this purpose. In the attached file, I added a custom column with Power Query that lists all date/time stamps for each row, based on the start date/time and the number of hours. Get rid of the start and end times and expand the lists to new rows and you get the basis for a regular pivot table as shown in the first sheet. Isn't that what you need?

 

 
Posted : 04/06/2025 4:21 pm
(@erik_h_dk)
Posts: 42
Trusted Member
Topic starter
 

Hi Riny

This is exactly what I wanted - thanks a lot.

The added custom list (=List.DateTimes([#"Start date & time"],[Hours],#duration(0,1,0,0))) made all the difference.

I will remember that for other projects - so simple but at the same time very powerfull.

This was only a small part of with dummy data in the project, and that's the reason my data model was small. 

 

Thank you

Erik

 

 
Posted : 05/06/2025 12:33 am
Riny van Eekelen
(@riny)
Posts: 1233
Member Moderator
 

@erik_h_dk 

Glad i could help!

 
Posted : 05/06/2025 1:54 am
Share: