Hello John. I am going to move your post to our Analytics and Reporting forum where you will get more specific help. Are you able at all to upgrade to at least Moodle 3.3? There is a standard feature in there which will help you identify At Risk students.
Analytics and reporting
Moodle Analytics for At Risk Students
This discussion has been locked so you can no longer reply to it.