I am using crystal reports version 11.
My task is to do the following.
I am working with a database that tracks if a client has a take out for a medication . All the medications are the same. I am going to be running this for a date range and i would like the final output to indicate
10 unique clients had 44 takeouts
9 unique clients had 3 takeouts
etc.....
each client has 1 line item per transaction so if the client had 10 takeouts there will be ten line items. I can group by client to get a sum of take outs. I know how to do this.
I think using a crystal array might be the best way to go with this , but am not too familiar with using arrays.
My thought would be to have a formula in the grouping that took the take out number and made it the array number example:
3 takeouts would be array[3] then to add a 1 to the internal value in array 3 (create a counter.) By the time the report is completed i would have all my arrays with values in them.
example array[3] would have a value of 5, array [4] would have 2 etc
My question is
1: how would i go about getting the output to occur for only those values that have a value greater then zero.
2. Any thoughts of an easier way of doing this?
any help would be appreciated.
thanks
My task is to do the following.
I am working with a database that tracks if a client has a take out for a medication . All the medications are the same. I am going to be running this for a date range and i would like the final output to indicate
10 unique clients had 44 takeouts
9 unique clients had 3 takeouts
etc.....
each client has 1 line item per transaction so if the client had 10 takeouts there will be ten line items. I can group by client to get a sum of take outs. I know how to do this.
I think using a crystal array might be the best way to go with this , but am not too familiar with using arrays.
My thought would be to have a formula in the grouping that took the take out number and made it the array number example:
3 takeouts would be array[3] then to add a 1 to the internal value in array 3 (create a counter.) By the time the report is completed i would have all my arrays with values in them.
example array[3] would have a value of 5, array [4] would have 2 etc
My question is
1: how would i go about getting the output to occur for only those values that have a value greater then zero.
2. Any thoughts of an easier way of doing this?
any help would be appreciated.
thanks