Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Capacity Reporting with Employee Work Hours

I want to show in a visual that an employee worked a certain amount of hours on a given date; and also show if it was above or under capacity for the day.

  • I want this visual to be used for the week & month, too.

 

I also am trying to show which employees are working over time and at what rate.

 

Here is a sample of my data

 

Date    |  Employee | Work Hours | Capacity by Day | Capacity by Week | Capacity by Month

 

1/1/18    John S       6                      8                           40                           160

1/3/18    Mike M     13                    8                           40                           160

2/3/18    Susie R      6                     8                            40                           160

3/2/18   John S        8.5                   8                           40                            160

3 REPLIES 3
v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

Can you mark the proper answer as a solution please?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

Please check out the demo in the attachment.

I would suggest you make some changes.

1. Create a date table like below.

DateTable =
ADDCOLUMNS (
    CALENDAR ( DATE ( 2018, 1, 1 ), DATE ( 2018, 12, 31 ) ),
    "Week", WEEKNUM ( [Date], 2 ),
    "Month", MONTH ( [Date] ),
    "CapacityByDay", IF ( WEEKDAY ( [Date], 2 ) IN { 1, 2, 3, 4, 5 }, 8, 0 )
)

2. Create a measure. 

Measure = sum('Table1'[Work Hours]) - sum(DateTable[CapacityByDay])

3. Create a Matrix visual. You can drill down to see different results.

Capacity_Reporting_with_Employee_Work_Hours

 

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
Super User
Super User

Hi,

 

In a calculated column, you can write a simple Overtime formula

 

=MAX([Work hours]-[Capacity by day],0)

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.