On the Fields tab, type the student's name in the Student field.
Show screenshot
Set School Year to the year or years you need, e.g. {Previous_School_Year}.
Show screenshot
Daily query only: open Days Enrolled and Days Attended and set the School Year parameter to the same year(s). Leave Grading Period as ALL.
Show screenshot
Run the query, export it as CSV, and choose the file below. Use the same student and year(s) in both queries.