Time and attendance dashboards

The time and attendance add-on gives operations users three dashboards in the WFM Time and Attendance folder:

Dashboard Date filter Purpose
WFM Time and Attendance Today, Yesterday, Tomorrow Daily operations view: headcount, attendance exceptions, unfilled positions, KPI rates and geo checks by Site, Job and Client
WFM Time Integrity Today, Yesterday, Tomorrow Pay and timesheet exceptions: early clock-ins, early leavers, short shifts, forgotten clock-outs, hours variance, pending timesheets, GPS failures, compliance alerts
WFM Attendance Trends Last 30, 7 or 90 days Weekly KPI trends and repeat offenders per worker

The dashboards, reports and report types are shipped as an unpackaged add-on, not inside the managed package. The geolocation fields and the automation that feeds them are in the managed package.

What gets installed

Piece Where Notes
b3s__Clock_In_Location__c, b3s__Clock_Out_Location__c on Shift Managed package Geolocation (6 decimals) where the worker clocked in or out
b3s__Clock_In_Distance__c, b3s__Clock_Out_Distance__c on Shift Managed package Formula, metres between the clock location and the Work Site's b3s__Location__c. Blank when either point is missing
b3s__Check_In_Time__c, b3s__Check_In_Location__c, b3s__Check_In_Distance__c, b3s__Check_In_Required__c on Shift Managed package Shift check-in, see Shift check-in
Geo Tag automation Managed package Trigger on b3s__Geo_Tag__c copies the tag's coordinates onto the shift
Report types Unpackaged add-on WFM Time and Attendance (Shift, includes the Work Site's client), ... with Geo Tags (Shift with Geo Tags), ... with Compliance Alerts (Shift with Event Alerts)
Report and dashboard folders WFM Time and Attendance Unpackaged add-on Public, read only
38 reports and 3 dashboards Unpackaged add-on WFM TA ... reports cover Yesterday to Tomorrow, WFM TR ... reports cover the last 90 days

The WFM Admin permission set grants read access to the four new Shift fields.

How clock locations reach the shift

When a worker clocks in or out from the Clock app (or a Terminal), a b3s__Geo_Tag__c record is created with b3s__Type__c = Clock In or Clock Out, the device location and a link to the shift. On insert or update of a Geo Tag, the package copies its latitude and longitude onto the shift:

The distance formulas then compare those points with the Work Site location:

IF(
    OR(ISBLANK(Clock_In_Location__Latitude__s), ISBLANK(Work_Site__r.Location__Latitude__s)),
    NULL,
    DISTANCE(Clock_In_Location__c, GEOLOCATION(Work_Site__r.Location__Latitude__s, Work_Site__r.Location__Longitude__s), 'km') * 1000
)

Sites must have b3s__Location__c populated for distances to calculate.

A shift that has an actual start but no Clock In Location was almost always clocked in manually by an internal user, or the device refused location (see GPS Failures to tell the two apart).

Shifts clocked before this release have no stored location. Re-saving their Geo Tags backfills them if needed.

Definitions

Attendance rules are calculated inside the reports as row-level formulas. Nothing is stored on the shift, so thresholds can be tuned per org by editing the report.

Attendance status

Status Rule (checked in this order)
Cancelled Status = Cancelled
Ad Hoc No scheduled start (the worker clocked in without a scheduled shift)
No Show No actual start and now is more than 15 minutes past the scheduled start
Upcoming No actual start and the no-show threshold has not passed yet
Overrunning Clocked in, not clocked out, and the scheduled end has passed
Late Clocked in more than 5 minutes after the scheduled start
On Site Clocked in on time and not yet clocked out
Completed Clocked in on time and clocked out

Exceptions

Exception Rule
Early leaver Clocked out more than 5 minutes before the scheduled end
Early clock-in Clocked in more than 30 minutes before the scheduled start (pay leakage risk)
Short shift Worked less than 50% of the scheduled length (both clock-in and clock-out recorded)
Forgotten clock-out Clocked in more than 12 hours ago and never clocked out
Hours variance (Actual length minus scheduled length) in hours, for scheduled shifts with both clock-in and clock-out. Negative means under-worked
Timesheet pending Clocked out and Approval Status is neither Approved nor Rejected
GPS failure A Geo Tag with a Location Error
Unfilled position An unassigned, non-cancelled shift counts 1. A demand (Required Staff above 1) counts Required Staff minus Assigned Shift Count

KPI rates

KPI Rule
On-Time % Of scheduled shifts that were clocked in, the share clocked in no later than 5 minutes after the start
No-Show % Of scheduled shifts whose start passed by 15 minutes, the share with no clock-in
Geo-Compliance % Of clock-ins, the share within 500 m of the site (clock-ins without location count as non-compliant)

Scope

Dashboard components

WFM Time and Attendance

Component Report
Scheduled, Unfilled Positions, On Site Now, Late, No Shows, Ad Hoc WFM TA Scheduled Shifts, Unfilled Positions, On Site Now, Late Arrivals, No Shows, Ad Hoc
On-Time %, No-Show %, Geo-Compliance %, Not Clocked Out after End WFM TA KPI On Time Rate, KPI No Show Rate, KPI Geo Compliance Rate, Overrunning
Attendance Status (donut) and by Site, Job, Client WFM TA Attendance Status By Site, By Job, By Client
Scheduled vs Actual vs Ad Hoc by Site WFM TA Scheduled vs Actual
On Site (Scheduled vs Ad Hoc) by Site WFM TA On Site Today
Unfilled Positions by Site WFM TA Unfilled Positions
Check-in High Risk (gauge), Check-in Low Risk (orange metric) WFM TA Check-in High Risk, Check-in Low Risk. See Shift check-in
Clock-In Distance from Site (0-500 m, 500 m-1 km, 1-5 km, Over 5 km) WFM TA Clock In Distance
Clock-Ins without Location WFM TA No Clock In Location
Cancellations by Reason WFM TA Cancelled By Reason

WFM Time Integrity

Component Report
Early Clock-Ins, Early Leavers, Short Shifts, Forgotten Clock-Outs, Timesheets Pending, GPS Failures Matching WFM TA reports
Hours Variance by Client WFM TA Hours Variance By Client (sum of variance hours)
Timesheets Pending by Site (stacked by approval status) WFM TA Timesheets Pending
Late Arrivals, No Shows, Not Clocked Out after End by Site WFM TA Late Arrivals, No Shows, Overrunning
Early Clock-Ins, Early Leavers, Short Shifts, Forgotten Clock-Outs by Site Matching WFM TA reports
GPS Failures by Site (clock in vs clock out) WFM TA GPS Failures
Clock-Out Distance from Site WFM TA Clock Out Distance
Compliance Alerts by Severity and by Site WFM TA Compliance Alerts

Forgotten clock-outs are usually found the morning after: select Yesterday.

Component Report
On-Time %, No-Show %, Geo-Compliance % (metric and weekly line) WFM TR On Time Rate By Week, No Show Rate By Week, Geo Compliance Rate By Week
Most Late Arrivals, No Shows, Early Leaves WFM TR Late By Worker, No Shows By Worker, Early Leavers By Worker
Most Clock-Ins over 1 km from Site, without Location WFM TR Far Clock Ins By Worker, No Location By Worker
Most Forgotten Clock-Outs WFM TR Forgotten Clock Outs By Worker

Worker charts show the top 15. Every chart drills through to the report with worker, site, job, scheduled and actual times.

Filtering

Each dashboard ships with one Shift Date filter mapped to Absolute Start Time on every component. Relative dates such as TODAY resolve in the viewing user's time zone.

Adding site, job or client filters

Dashboard filters on lookup fields need the actual values (site names, client names), which differ per org, so they are not shipped. An admin can add filters in the dashboard editor:

  1. Open the dashboard, click Edit, then + Filter.
  2. Choose Work Site, Work Job or Work Site: Account as the field, give it a display name and add the values (for example each site name, or "starts with" a region prefix).
  3. Save. Every report type in the add-on includes these fields, so the filter applies to every component.

Changing the thresholds

Thresholds are written into each report's row-level formula or filter. Time thresholds are fractions of a day (5/1440 is 5 minutes).

Threshold Reports to edit
Late (5 min) Attendance Status By Site, Job, Client; Late Arrivals; KPI On Time Rate; TR Late By Worker; TR On Time Rate By Week
No show (15 min) Attendance Status By Site, Job, Client; No Shows; KPI No Show Rate; TR No Shows By Worker; TR No Show Rate By Week
Early leaver (5 min) Early Leavers; TR Early Leavers By Worker
Early clock-in (30 min) Early Clock-Ins
Short shift (50%) Short Shifts
Forgotten clock-out (12 h) Forgotten Clock-Outs; TR Forgotten Clock Outs By Worker
Geo-compliance (500 m) KPI Geo Compliance Rate; TR Geo Compliance Rate By Week
Check-in high risk (60 min), low risk (60 to 90 min) Check-in High Risk; Check-in Low Risk
Distance bands, far clock-in (1 km) Clock In Distance, Clock Out Distance (bucket column); TR Far Clock Ins By Worker

Deployment

The Version 11 release downloads include wfm-v11-time-attendance-dashboards.zip, containing the released reports, dashboards and report types in a Salesforce source project.

  1. Install WFM 11.0.0 and its required 3B Portals & Mobile Apps dependency.
  2. Extract the dashboard archive, then run the following command from its project folder against a subscriber sandbox:
sf project deploy start --source-dir unpackaged-dashboards --target-org <alias>
  1. Grant users access to the report/dashboard folders and the objects and fields the reports use. The dashboards run as the logged-in user.
  2. Populate Site locations, check the report thresholds, and refresh the dashboards. Move the reviewed configuration to production through your normal deployment process.

The metadata uses the b3s__ namespace.

Installing the managed package alone does not deploy this add-on. Grant users access to the report and dashboard folders and required objects and fields. The dashboards show the last refresh, not a continuously updated feed. The Version 11 release also provides a downloadable dashboard source project.