- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Compare Available Hours to Actual Hours Worked
Trying to calculate total available hours for a team that include both full- and part-time employees. I want to build a measure that compares available hours to actual hours worked.
My employee table includes [Name] and [Standard Hours] for each person It is related to the separate "Time" table (which includes work hours and tasks) through the [Name] field.
I have also created a "Working Days Calendar" that excludes weekends and holidays. It is related to the "Time" table through the [Date] field.
Using it I've built a formula that calculates the number of available workdays.
Then I created another measure for available hours:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Here's the solution that eventually worked for me:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @gbraunwoodbury ,
Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.
Best Regards
Lucien
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Here's the solution that eventually worked for me:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you so much for your suggestion, Ashish -- however in your version the capacity hours are not affected by the date slicers. When I select Year = 2021 and Month = September on the slicers, I expect to see only the capacity hours for that month, by person. Instead, I see a constant number for each person regardless of how the slicers are configured.
Report with slicer for 2020:
Report with slicer for Q1 2021 -- same number of capacity hours showing:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Unfortunately when I do that, capacity shows as null.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

It does show results for 2021. Ensure that the working day table is complete.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I must be doing something wrong. Below is what I see with 2021 selected on the slicer. I did not change the working day table from what you sent me... how do I ensure it is complete?
[I GREATLY appreciate your help with this, by the way. You are a true community person!]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

You are welcome. Select 2020 (not 2021). There is no data for 2021 in the Working Days calendar table.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Same result, unfortunately:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I am not sure of how else i can help you. I have clearly shown you that my method works in the file that i shared with you.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I'm guessing that my idea of using a separate workdays calendar is not going to work for this calculation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
Capacity is both a calculated column formula (the one that you created) and a measure (the one that i have creaed). To your visual, drag capacity (the measure from the Harvest table) not the capacity (the calculated column formula from the Team table).
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Link to the PowerBI files:
https://www.dropbox.com/sh/zm2ulo88n77dx66/AAA_0s-S03KuvKEhGMe_Xxrua?dl=0
Below is the viz I am trying to create. The yellow line shows capacity based on a measure of [#work days] * [standard hours]. However the capacity is showing as a constant number of hours for the entire year. I want it to be filtered based on calendar date. I should be able to compute, for any period, the number of available hours for each person AND the number of hours actually worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
FIrst of all, the Calendar Table should have all dates including weekends and holidays. Lastly, share some data, describe the question and show the expected result.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
Download the PBI file from here.
Hope this helps.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
12-06-2024 04:58 AM | |||
02-09-2025 09:24 PM | |||
03-13-2025 01:56 AM | |||
12-05-2024 04:12 AM | |||
09-23-2024 05:40 AM |
User | Count |
---|---|
100 | |
68 | |
59 | |
47 | |
46 |