Hi,
I am using CRv10.
I have developed a report which will list the amount of times a prisoner has moved cells (placement). I am only interested in prisoners who have moved at least once.
The report is grouped by:
1. Facility
2. Prisoner Name
3. Custody Number
Each placement is given a unique number (placement_id) and I added this id to the details section of the report and added a distinct count by group 3 (Custody Number).
I then added a group selection to the select statement to only return records where the distinct count of placment_id was greater than 1.
I thought I could add a running total (distinct count of custody number) to give me the total number of prisoners however it isn't counting all of the records. What I mean by not counting all the records is that the running total is not always increasing each time the custody number changes.
I then added a formula to the same running total ie. if distinctcount(placement_id, custody_number) > 1 then true but this still isn't counting the records.
Is there something I am missing. I have spent so much time on this and do not appear to be getting any closer to resolving it.
Any assistance would be appreciated.
Thank you.
I am using CRv10.
I have developed a report which will list the amount of times a prisoner has moved cells (placement). I am only interested in prisoners who have moved at least once.
The report is grouped by:
1. Facility
2. Prisoner Name
3. Custody Number
Each placement is given a unique number (placement_id) and I added this id to the details section of the report and added a distinct count by group 3 (Custody Number).
I then added a group selection to the select statement to only return records where the distinct count of placment_id was greater than 1.
I thought I could add a running total (distinct count of custody number) to give me the total number of prisoners however it isn't counting all of the records. What I mean by not counting all the records is that the running total is not always increasing each time the custody number changes.
I then added a formula to the same running total ie. if distinctcount(placement_id, custody_number) > 1 then true but this still isn't counting the records.
Is there something I am missing. I have spent so much time on this and do not appear to be getting any closer to resolving it.
Any assistance would be appreciated.
Thank you.