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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Creating Late/Early/On-Time Measure for Employees

I am attempting to create a row in my Power BI report that allows managers to see if an employee is late, early, or on time. I completed a simple function that would say on-time if an employee clocked in at the exact start time, but there is also a 3-minute window before and after official start time that would also be considered on-time. Can I get some assistance with this? Here is what I had before I discovered the new information.

 
Status =
IF(
    'DUMP'[Punch Start] > 'DUMP'[Schedule Start],
    "Late",
    IF(
        'DUMP'[Punch Start] < 'DUMP'[Schedule Start],
        "Early",
        "On-Time"
        )
)
1 REPLY 1
TomasAndersson
Solution Sage
Solution Sage

Hi!
You could try using TIME() 

 

Status =
IF(
    'DUMP'[Punch Start] > 'DUMP'[Schedule Start] + TIME(0, 3, 0),
    "Late",
    IF(
        'DUMP'[Punch Start] < 'DUMP'[Schedule Start] - TIME(0, 3, 0),
        "Early",
        "On-Time"
        )
)

Hope this helps!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.