If you head to Reporting > Reports > Attendance (tab) > Custom Attendance Report you will find there is a box to tick saying: "Only show sessions for students who were on roll for the complete period between the dates chosen".
Tick this box, as well as setting your date range, and select the years you wish to appear in the attendance report, prior to clicking Choose to run the report.