One of the following roles is required to access this query: Website Full, Attendance Full, Attendance Read, Admin Full, Admin Read.
This DAT Query lists each student and course section with Class Days, Absent, Tardy, Present and Attendance Rate for the current school year, based on Period Attendance. Class Days is the number of distinct In School rotation dates on which the section meets, found through the section's Class Schedule, its blocks and the Daily Rotation, for the same term, inside the current marking periods and up to today.
Absent is the number of period attendance records for that student and section whose attendance code has a Historical Meaning of Absent Excused or Absent Unexcused. Tardy is the number whose Historical Meaning is Late Excused or Late Unexcused. The Historical Meaning of each code is set in Security > Maintenance > Attendance Types. Present is Class Days minus Absent, and Attendance Rate is Present divided by Class Days.
The results show Student Id, Last Name, First Name, Course Name, Section, Term, Class Schedule, Teacher Last Name, Teacher First Name, Class Days, Absent, Tardy, Present and Attendance Rate, sorted by Student Id.
The query has no parameters, so it can be added to a dashboard as a Data Analytics Grid widget, where it shows the selected student's classes. To report on one marking period, change the Marking Period > 0 condition on the Daily Rotation table to equal that marking period.
Note: A section that meets in two blocks on the same day counts one class day. The query relies on the class schedule and the daily rotation, so a section without a class schedule does not appear.