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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
julsh41
Helper II
Helper II

Number of Work days from Hire date to now

Capture.PNG

I need help!  I have a date table set up and columns to identify week days and holidays so I can calculate work days for the year, and it works perfectly for all employees that were here on Jan 1st, 2018.  What I can't seem to figure out is how to take the "Hired Date" from my employee list table and reduce available 2018 work days based on their hire date.  

 

Above is a list of new hires with their Hired on dates.  First, Everyone shows FULL available hours in the month they started, regardless if they started in the beginning of the month or the end.  Second, the total for everyone is the same 1592, which is the available hours total from Jan 1 to current.

 

Looking for some guidance.  Thanks

 

James

 

 

4 REPLIES 4
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @julsh41,

Could you please post your data stracture and your desired result if possible?

 

Regards,

Daniel He

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

Hi, i have the same requirement as @julsh41... and appreciate if @v-danhe-msft or @Arentir can help. here is my data structure:

  1. Calendar table with a dates column
  2. Employees Table (AppUsers) with the Names and include the hiring dates, with a relationship between the two tables from dates to HiringDate but inactive due to ambiguity with other relationships and tables in the dataset. created a Measure to calculate Workdays as follows:
WorkDays = CALCULATE(COUNT('Calendar'[Date]),'Calendar'[Weekday Num]<>5)*[Count of MedReps]

Note: [Count of MedReps] is a measure to count the Employees, and we have Friday only as a weekend!

 

now i have the following result screenshot of a table and date slicer: Annotation.png

 

 

so as you can see in the marks, the workdays (for the selected interval in the slicer) for two employees are incorrect, I tried to add a column with the following formula but the column does not respond with changing the slicer and shows wrong calculation: 

Workdays Adj = CALCULATE([WorkDays],FILTER('Calendar','Calendar'[Date]>=AppUsers[DateOfHire]))

so appreciate your help on this and should you need more info, i will be more than happy to provide.

 

regards,

Mohammad

Arentir
Resolver III
Resolver III

Hi @julsh41

It is hard to help you without looking at the model, any change you can share the model? (Feel free to remove any confidential information beforehand)

That would be tough.  The model is pulling entirely from Quickbooks Online so I am not sure what will break if I delete employee and customer information.  I can try

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.