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 who has a class schedule with Total Days, Absent, Tardy, Present and Attendance Rate for the current school year, where Total Days counts only the days the student had a class. It suits schools where students attend on some days only, such as a student scheduled for one class a week. For a count of every day the division was in session, use Standard Query: Admin - Attendance: Daily Attendance Overview by Student.
Total Days is the number of distinct In School dates on the Daily Rotation on which one of the student's current-year course sections 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 distinct dates with a daily attendance record whose attendance code has a Historical Meaning of Absent Excused or Absent Unexcused. Tardy is the number of distinct dates with a code whose Historical Meaning is Late Excused or Late Unexcused. The Historical Meaning of each code is set in Security > Maintenance > Attendance Types. Present is Total Days minus Absent, and Attendance Rate is Present divided by Total Days.
The results show Student Id, Last Name, First Name, Total 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. To report on one marking period, change the Marking Period > 0 condition on the Daily Rotation table to equal that marking period.
Note: A student without a current-year class schedule does not appear, because there are no scheduled days to count. A Daily Rotation date counts only when its Day Status is In School, whatever its Day of Cycle.