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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
wyleereilly
Frequent Visitor

Logic to recognize an employees Start & End Date given a report that identify missing time entries

Hi Power BI Community,

 

I've been struggling for a few days here to figure this one out. Hoping someone here can help me diagnose. 

 

Background

  • My Professional services team is responsible for logging 8 hours a day in our time management software (which I have connected to Power BI)
  • The objective of the report is to essentially identify the 'delta' between the employee's time logged and the 8 hours they're responsible for logging--i.e., did the log their 8 hours on that given day, and what is the difference
  • As for databases:
    • I have a 'Time Entries' Data Table that has historical time logged by employee
    • & a 'Workweek' Data Table that is essentially a Date Table, with a 'Workweek' column that has 8 hours, unless a holiday is in the system for that day, in which case it becomes a 0.

 

 

Below is a screenshot example - so given a date, I display the 'Time - Hours' (Time Logged by Employee) from the Time Entries table, the amount of time they are responsible for logging (factoring in holidays), and a 'Workday Delta', which is calculated as follows:

 

wyleereilly_0-1662131834199.png

Note: 'Difference between workday and holiday' = 'Workweek' column shown below:

 

wyleereilly_1-1662131834203.png

 

 

 

Database Structure

Below is the schema, with the relationship between Time Entries and Workweek as follows:

 

wyleereilly_2-1662131834206.png

 

 

 

 

  • Employees & Time entries table is simply connected by User ID

 

 

wyleereilly_3-1662131834207.png

 

 

 

My Employees Table holds the start/end date:

wyleereilly_4-1662131834208.png

 

 

 

And I've also merged queries into my Time Entries Table to see if a related relationship would impact this at all.

 

 

The Challenge

I can't figure how to add a measure/column that recognizes the End & Start Date of each employee, and 0's our the Workday Delta accordingly

  • At this time, when using my slicer on date, technically all of my employees, regardless of whether they've left or not, are responsible for logging their 8 hours
  • Additionally, when going back in time, all of my employees who haven't started yet shouldn't show up in the filtered visualizations

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

For such scenarios you may want to consider using a disconnected calendar table.  That will allow you to compute the measure also for dates where no user has recorded their data (even if they should have).

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

For such scenarios you may want to consider using a disconnected calendar table.  That will allow you to compute the measure also for dates where no user has recorded their data (even if they should have).

Thank you for responding- I did end up using a master date table, but due to the custom nature of some of the calculations I also made a new underlying dataset as well to be more compatible. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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