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 one column per attendance code, holding the number of Period Attendance records with that code in the current school year. The columns come from the Attendance Description field with the Pivot (Auto) role, so they match the codes in use at your school. A record counts when its date is a Daily Rotation day inside the current marking periods for the student's division.
The results show Student Id, Last Name, First Name, Course Name, Section, Term, Class Schedule, Teacher Last Name and Teacher First Name, followed by one column per attendance code, sorted by Student Id.
The query has no parameters, so it can be added to a dashboard as a Data Analytics Grid widget. To report on one marking period, change the Marking Period > 0 condition on the Daily Rotation table to equal that marking period.
Note: Pivot (Auto) builds the columns from the rows that match the query's conditions, so on a student dashboard only the codes that student has appear. To show the same columns on every run, change the Role of the Attendance Description field from Pivot (Auto) to Pivot and add an Attendance Description condition that lists the codes to show.