Code
Outputs

What the gold layer answers

Who is logging their time?

People expected to log (enabled, not exempt, employed that month) vs people who did.

2026ExpectedLoggingCoverage
Jan898696.6%
Feb918896.7%
Mar928996.7%
Apr939096.8%
May949196.8%
Jun949196.8%
Jul949196.8%
Aug928996.7%
Sep958791.6%

September drops because five people stopped logging in mid-August. They show up by name in gold_mart_nonloggers, with their manager, so someone can follow up.

Is sold time being used?

CRM assignments prorated by month and allocation, compared with hours logged against the same client. One row per person, client and month; hours.

StatusRowsSoldLogged
ok84677,94266,625
under-utilized (logged < 70% of sold)52144,61021,045
assigned, not logging896,8040
logging, not assigned1,052020,380

What did a person's record look like on a given day?

Department moves in early October, kept as history instead of overwritten:

PersonDepartmentValid fromValid to
Elena VeraStrategy2026-09-302026-10-04
Elena VeraEngineering2026-10-04current
Gonzalo SosaEngineering2026-09-302026-10-03
Gonzalo SosaData2026-10-03current