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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
sizi
Helper II
Helper II

Defining employee occupancy in a month based on number of tasks assigned

Hello all,

 

I have a requirement wherein I need to define user's occupancy in a month based on number of projects assigned during the time period.  Ex: For January month if a user has 6 projects planned between Jan 5-Jan 25, 1st project is falling between Jan 5th-Jan10th, 2nd & 3rd project between Jan 10-Jan15th and Last 3 project between Jan 16th-Jan 25th, then for the 1st condition, the timeline should be relatively free colored green, for 2nd condition, it should be medium as there's 2 projects and colored yellow and for the last 3 project it should be high colored red and all this needs to defined based on demands and start and end date of task.

Basically If one task then free = green, 2 task then medium =yellow and if user has 3 task and more than highly busy = red based on dates overlap. I need this to be visualised.

 

Below is the sample data. 

 

Task NumberUsersStart DateComplete Date
101John1/1/20245/1/2024
102John6/1/202411/1/2024
103John6/1/202411/1/2024
104John6/1/202411/1/2024
105John12/1/202417/1/2024
106John12/1/202417/1/2024
107John18/1/2202423/1/2024
108John18/1/2202423/1/2024
109John18/1/2202423/1/2024
110John18/1/2202423/1/2024
111John18/1/2202423/1/2024
112John18/1/2202423/1/2024
113Bethany1/1/20244/1/2024
114Bethany1/1/20244/1/2024
115Bethany5/1/20246/1/2024
116Bethany6/1/202411/1/2024
117Bethany6/1/202411/1/2024
118Bethany18/1/2202423/1/2024
119Bethany18/1/2202423/1/2024
120Bethany18/1/2202423/1/2024
121Bethany24/1/202430/1/2024
122Bethany24/1/202430/1/2024
123Bethany24/1/202430/1/2024
124Bethany24/1/202430/1/2024

 

KIndly help. Thanks in advance.

 

 

 

 

2 REPLIES 2
Corey_M
Resolver II
Resolver II

Vizualizing it might be a little tricky, but I figure I'll at least get you started.

 

first you'll need some kind of date table, if you don't have one you can create a new  table with a measure like this:

Date = 
CALENDAR (DATE(2020,1,1), DATE(2025,12,31))

you'll likely want to make sure its a date as opposed to datetime

 

your active tasks measure will then be:

Active Tasks = 
CALCULATE(
    COUNTROWS('Tasks'),
    FILTER(
        'Tasks',
        'Tasks'[Start Date] <= MAX('Date'[Date]) && 
        'Tasks'[Complete Date] >= MIN('Date'[Date])
    )
)

Plugging that into a matrix does show that it works, but of course is not a good visualization of the data

Corey_M_0-1704989677857.png

As far as visualization goes it kind of depends on what you are wanting to see.

 

if you want to see multiple users simultaneously then you would probably ideally want to use a Gantt chart, but there isn't a default one, and I'm not aware of a free one on the store that would implement this without some kind of hacky solution.

 

another option would be to use a heatmap which is going to be likely much easier to implement, but may not be as visually clear or appealing.

 

if you want to look at only one or a few people at a time a calendar kind of format might work well

 

Thanks Corey. Much appreciated.

 

what I am looking for is something like bar chart or timeline chart listing all user one below other with bar against each categorised based on their occupancy for that month with green yellow and red range. Will try what you mentioned and let see. Thanks again. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors