Hi, I am developing a report using CR10 and it is proving to be a lot more difficult than I expected.
The purpose of the report is to count how many offenders have had all their order conditions contracted.
Each offender can be subject to one or more orders. Each order will contain at least one condition. Each order condition may or may not have a referral contract attached and unfortunately not all referral contracts will be relevant to the condition it is attached to – (not quite sure why this is permitted but anyway…)
I am currently grouping the report by offender location, then offender id. The third group is the order id, fourth group is order conditions and fifth group is the referral contract (if there is one).
I have then created a formula {@FlagContract} at the detail level to flag whether a referral contract was present and if there was one, that the referral contract was in fact relevant to the order condition ie. if relevant then 1 else 0. I then inserted a Max of {@FlagContract} at group header 5, and if Max of @FlagContract = 1 then that particular order condition contains a relevant contract.
Basically every group 5 header will have to have a Max of {@FlagContract} = 1 for the offender to be counted and this is where I’m stuck. I’m not sure how to actually count this. I thought a running total would work but I was wrong.
I hope this all makes sense and if so, any suggestions would be appreciated.
Thank you.
The purpose of the report is to count how many offenders have had all their order conditions contracted.
Each offender can be subject to one or more orders. Each order will contain at least one condition. Each order condition may or may not have a referral contract attached and unfortunately not all referral contracts will be relevant to the condition it is attached to – (not quite sure why this is permitted but anyway…)
I am currently grouping the report by offender location, then offender id. The third group is the order id, fourth group is order conditions and fifth group is the referral contract (if there is one).
I have then created a formula {@FlagContract} at the detail level to flag whether a referral contract was present and if there was one, that the referral contract was in fact relevant to the order condition ie. if relevant then 1 else 0. I then inserted a Max of {@FlagContract} at group header 5, and if Max of @FlagContract = 1 then that particular order condition contains a relevant contract.
Basically every group 5 header will have to have a Max of {@FlagContract} = 1 for the offender to be counted and this is where I’m stuck. I’m not sure how to actually count this. I thought a running total would work but I was wrong.
I hope this all makes sense and if so, any suggestions would be appreciated.
Thank you.