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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
3Jk33f3
Helper I
Helper I

Measuring capacity of resources within a payroll year considering the budgeted allocated resources

I have attempted for weeks to create a measure that would help me figure out what a division's work capacity has been throughout the year so that we can measure impact on productivity due to position vacancies and time off taken. 

I currently have payroll data for the year that contains all paycodes, payroll period, date, etc. See below..

3Jk33f3_0-1696614646020.png

I also have the number of positions we are budgeted for by division: 

3Jk33f3_1-1696614700837.png

For example:

  • Division A is budgeted for 12 positions and they experienced some turnover throughout the year.
  • At times a position or two would be vacant for a month or two.
  • I'd like to have a measure that would calculate the time all people assigned to that division worked.
  • I've tried using the number of payroll periods they worked to determine the % of year worked.
  • But I get stuck trying to aggregate that number and comparing it to the budgeted positions to determine the division's true capacity for the year.

Measures I've created:

% year worked 

%yearworked = CALCULATE(DIVIDE('Payroll20-23'[PayPeriodsWorked], 26))

Capacity of year worked

CapacityYearWorked = DIVIDE('Payroll20-23'[%yearworked], [FullCapacity])

Pay periods worked

PayPeriodsWorked = MAX('Payroll20-23'[Payroll Period])

Payroll Period

Payroll Period = SWITCH([WeekNumber], 
    1, "1",
    2, "1",
    3,"2",
    4, "2",
    5,"3",
    6,"3",
    7, "4",
    8, "4",
    9, "5",
    10, "5",
    11, "6",
    12, "6",
    13, "7",
    14, "7",
    15, "8",
    16, "8",
    17, "9",
    18, "9",
    19, "10",
    20, "10",
    21, "11",
    22, "11",
    23, "12",
    24, "12",
    25, "13",
    26, "13",
    27, "14",
    28, "14",
    29, "15",
    30, "15",
    31, "16",
    32, "16",
    33, "17",
    34, "17",
    35, "18",
    36, "18",
    37, "19",
    38, "19",
    39, "20",
    40, "20",
    41, "21",
    42, "21",
    43, "22",
    44, "22",
    45, "23",
    46, "23",
    47, "24",
    48, "24",
    49, "25",
50, "25",
51, "26",
52,"26",
 53,"26")

 

I need to provide this analysis to my leadership team in the next few weeks so any assistance is greatly appreciated. 

 

Thank you,

Linda 

2 REPLIES 2
lucadelicio
Super User
Super User

Hi Linda,

can you share the pbix or the excel sample data to help you?

Thank you!



Luca D'Elicio

LinkedIn Profile

Ok, I'm going to try the best that I can to provide sample data. It's payroll data so there's sensitive information, not to mention, so much of it. I made a small data set and hopefully it'll help.  

I can't attach an Excel file so here is my sample data that would export from our payroll system:

Employee IDNameLast Hire DateDivisonStatusHour TypeDateHoursPaycode
12345Tim9/26/2016Team AActive1 12/31/201914.5Regular
54321Alan9/26/2018Team BActive1 12/31/201933.5Regular
67890Jodi9/26/2016Team CActive1 01/15/20205Regular
9876Alec9/26/2016Team DActive1 01/15/202066Regular
24680Ellen9/26/2016Team EActive1 01/31/20201Regular
12345Tim9/26/2016Team AActive1 01/31/20209Regular
97449Jake1/15/2020Team BActive1 01/31/202069Regular
67890Jodi9/26/2016Team CActive1 02/15/20201Regular
9876Alec9/26/2016Team DActive1 02/15/20201.5Regular
24680Ellen9/26/2016Team EActive1 02/15/20201.5Regular
12345Tim9/26/2016Team AActive1 02/15/20209.5Regular
54321Alan9/26/2016Team BActive1 02/15/202058.5Regular
67890Jodi9/26/2016Team CActive1 02/29/20207Regular
98760Alec9/26/2016Team DActive1 02/29/20208Regular
81435Tracy2/18/2020Team EActive1 02/29/202057Regular

 

This is the "head count" allocated to each division:

DivisionNumber of position IDsYear
Team A182021
Team B92021
Team C112021
Team D112021
Team E72021
Team A182022
Team B92022
Team C112022
Team D112022
Team E72022

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.