Treat a zero as provisional until every required session register is complete. Start with the class roster so each enrolled person appears even if there is no attendance row. In this fictional class, one student has one recorded attendance, and two have zero. The third register is still open.
How to run the check
List the scheduled sessions in the month. Keep a completion flag for each register and use the roster effective dates to decide which sessions apply to a student.
Join attendance to class, student and session. Count each eligible session marked Present once. If one attendance entry appears twice, keep its source references while counting the session once.
Show the recorded count and register coverage in separate columns. Publish a final count only when all expected registers are complete. If a student has no expected sessions in the selected period, label that separately.
Fictional example
Roster
Class
Student
Effective from session
C1
S01
D1
C1
S02
D1
C1
S03
D3
Sessions
Class
Session
Register
C1
D1
Complete
C1
D2
Complete
C1
D3
Open
Encounters
Class
Session
Student
Attendance
C1
D1
S01
Present
C1
D1
S01
Present
What the records show
Encounters!A2:D3 records S01 twice for D1. Count one. Sessions!C2:C4 gives coverage of 2/3 for S01 and S02, and 0/1 for S03, who joins at D3 in Roster!C4. When D3 closes with no additional present records, the final counts are 1, 0 and 0.