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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Brijesh
Frequent Visitor

Capacity Calculation

Hi,

I'm fairly new to PBI. Please help me with greater detail.

Background:

In my organisation, we need to measure people's (across Australia) contribution. In order to do that we are capturing all task that they are completing on a daily basis. Each different task has allocated different time to it. In order to obtain their contribution, "Total time to complete all task" would be our Numerator.

In order to calculate contribution, we are required to know their capacity as well. A full time employee is working 7.5 hours a day. However, we need to exclude all leaves (annual leave, sick leave), all public holidays and weekends. Capacity would be our Denominator.

 

Current Process:

Currently we have calculated a flat % of all leaves and weekend portion and bring employee's working commitment down from 100% to say 60%! This 60% is then applied to their full capacity (7.5 hours) which brings their full time capacity for a day down to 4.5 hours for a day!

 

Current process Example: 

(A) Measure to calculate capacity =

CALCULATE(sum(Date_Tbl[IfWorkday]))*SUM(Employee[60% of Full Capacity])

(B) Measure to sum total time spent on tasks = 

CALCULATE(SUM('TBL SRs'[Timing(mins)]),'TBL SRs'[Task Name] = "Changing Client Details")

Measure to get contribution = DIVID(A,B,0)

 

Problem:

Above percentage calculation is based on a full year. However the issue is when management is looking at a quarter or even a month data how their staff is performing is not giving them an accurate picture as if we take a month example, there is not all public holiday falls within that month or not all leaves have been taken into that month and not all weekends (52) falls into that one month! So, looking at month or even quarter level view is not an ideal with this calculation as it's not flexible enough! I have a date table with column called "IsWorkDay" (value 0 or 1), to pick if a given date is a weekday or weekend? I can incorporate public holiday in the same way but people sometime works on the weekends (obviously they are not oblige to do so) and completed their task during weekend, this will not capture as part of their total effort as the system date stamp whenever they complete the task!

 

Desire solution:

I would like to consider all leaves, holidays and weekends to calculate their capacity but would like to include all works that has completed even they are not at work!

 

Sorry for long post but I though providing more detail would give greater understanding of the issue which leads to a quick solution!

 

Looking forward to getting help on this.

 

Thanks,

Brijesh

1 REPLY 1
AnthonyTilley
Solution Sage
Solution Sage

hi @Brijesh 

 

do you have some sample data, this would help me see what data is avilable to make this caluclation.

 

looking at your problem do you have the following datasets

 

1. a datetable - table containing all days in the year with a refrence to working or non working by default 

2. shift paterns tabel - this can be in two forms eaither a table of the works normal working hours along with a second table of alteratons such as sick days, annual leave, overtime etc

3. working table - a table whosing each tast start and end time or start time and duration. 

 

the aim here is to create two measures a Total hours avilable and a total hours used each day 

 

Prefereable your data should be in a similar format to below.

tabs.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.