Hi, I am developing a report in CR10 and need to capture any person who has missed 3 consequtive days of community work with the status "Absent No Contact".
I have grouped the report by community work site and then person id. As a result the data looks like this:
ABC PARKLANDS
PERSON_ID: 123456
Id Start Date/Time End Date/Time Status
1 08/10/11 08:00 08/10/11 16:00 Attended
2 09/10/11 08:00 09/10/11 16:00 Absent No Contact
3 15/10/11 08:00 15/10/11 16:00 Absent No Contact
4 16/10/11 08:00 16/10/11 16:00 Absent No Contact
5 20/10/11 08:00 20/10/11 16:00 Attended
PERSON ID: 258979
7 03/10/11 08:00 09/10/11 16:00 Absent No Contact
8 04/10/11 08:00 09/10/11 16:00 Absent No Contact
9 17/10/11 08:00 09/10/11 16:00 Attended
9 18/10/11 08:00 09/10/11 16:00 Absent No Contact
In these two examples, only the first Person Id would be flagged as having 3 unacceptable absences.
I tried a running total however this didn't quite achieve what I was hoping for. I'm thinking I may need to use a variable but not sure how to get this to work.
Any assistance would be appreciated.
Thanks
I have grouped the report by community work site and then person id. As a result the data looks like this:
ABC PARKLANDS
PERSON_ID: 123456
Id Start Date/Time End Date/Time Status
1 08/10/11 08:00 08/10/11 16:00 Attended
2 09/10/11 08:00 09/10/11 16:00 Absent No Contact
3 15/10/11 08:00 15/10/11 16:00 Absent No Contact
4 16/10/11 08:00 16/10/11 16:00 Absent No Contact
5 20/10/11 08:00 20/10/11 16:00 Attended
PERSON ID: 258979
7 03/10/11 08:00 09/10/11 16:00 Absent No Contact
8 04/10/11 08:00 09/10/11 16:00 Absent No Contact
9 17/10/11 08:00 09/10/11 16:00 Attended
9 18/10/11 08:00 09/10/11 16:00 Absent No Contact
In these two examples, only the first Person Id would be flagged as having 3 unacceptable absences.
I tried a running total however this didn't quite achieve what I was hoping for. I'm thinking I may need to use a variable but not sure how to get this to work.
Any assistance would be appreciated.
Thanks