I'm using crystal 8.5 and ODBC.
I'm just learning about arrays so bear with me.
I'm working on a productivity report where I'm trying to list certain statistics such as much billable service each staff provided in a user defined reporting period. How many and which staff appear in the report is variable according to the date parameters selected.
simplified Example, data in Report footer:
MHSMin MHSUnits AverMHSmin/unitperday $MHSAmount
Staff A:
Staff B:
Staff C:
ETC, ETC:
Because of the formulas I have to use to calculate the results I want for some of my columns I am unable to use a crosstab report.
I had to group the following way
Group 1: client id(who was served)
Group 2: date of service
I've been able to get the results I want by creating running totals and variables for each staff but this causes the following issues:
1) I have to continuously maintain the report when ever there is staff turnover, very cumbersome
2) Sometimes staff are displayed in the report when there is no data to report on them (eg-they weren't working here for the selected dates)
3) I have recently been asked to add about 15 more columns of information to display per staff
Example of one of the columns "MHSUnits": We bill in units. Units are calculated by adding the minutes of service provided to that client by all staff and then using a minute to unit conversion scale. However, management wants to see how many units each staff provided.
I am able to do this by the following cumbersome method:
1) Creating a Running Total {#RTotDurDaystafflastname} each staff that sums the minutes provided to each cliet each day when provider ID = Staff A
2)Creating a Sum of all the minutes provided to each consumer by all staff
3) Creating a formula {@UnitsperDay} to convert the total minutes per day by all staff into units per client per day.
4)Creating a formula for each staff{@UnitCreditstafflastname} to get unit credit per client per day per staff.
{#RTotDurDaystafflastname}/ Sum ({@Duration}, {staff_tx_history.date_of_service}, "daily") * {@UnitsperDay}
//{@Duration} converts string value into a number. //Calculates percentage of how many of the total minutes a specific staff provided and then multiples by the total units obtained to give "unit credit"
5) Creating a set of variables Per staff to accumulate, reset, and display Unit credit per staff.
After reading about arrays and trying to figure this out, I am guessing that I could use a dynamic array to simplify this and also save mass amounts of time in creating the addition summary columns requested. Would an array allow me to only have one formula equivalent to{#RTotDurDaystafflastname} and one set of variables to accumate all the unit credit for all staff at once? Or is there some easier way of doing this? Help!
I'm just learning about arrays so bear with me.
I'm working on a productivity report where I'm trying to list certain statistics such as much billable service each staff provided in a user defined reporting period. How many and which staff appear in the report is variable according to the date parameters selected.
simplified Example, data in Report footer:
MHSMin MHSUnits AverMHSmin/unitperday $MHSAmount
Staff A:
Staff B:
Staff C:
ETC, ETC:
Because of the formulas I have to use to calculate the results I want for some of my columns I am unable to use a crosstab report.
I had to group the following way
Group 1: client id(who was served)
Group 2: date of service
I've been able to get the results I want by creating running totals and variables for each staff but this causes the following issues:
1) I have to continuously maintain the report when ever there is staff turnover, very cumbersome
2) Sometimes staff are displayed in the report when there is no data to report on them (eg-they weren't working here for the selected dates)
3) I have recently been asked to add about 15 more columns of information to display per staff
Example of one of the columns "MHSUnits": We bill in units. Units are calculated by adding the minutes of service provided to that client by all staff and then using a minute to unit conversion scale. However, management wants to see how many units each staff provided.
I am able to do this by the following cumbersome method:
1) Creating a Running Total {#RTotDurDaystafflastname} each staff that sums the minutes provided to each cliet each day when provider ID = Staff A
2)Creating a Sum of all the minutes provided to each consumer by all staff
3) Creating a formula {@UnitsperDay} to convert the total minutes per day by all staff into units per client per day.
4)Creating a formula for each staff{@UnitCreditstafflastname} to get unit credit per client per day per staff.
{#RTotDurDaystafflastname}/ Sum ({@Duration}, {staff_tx_history.date_of_service}, "daily") * {@UnitsperDay}
//{@Duration} converts string value into a number. //Calculates percentage of how many of the total minutes a specific staff provided and then multiples by the total units obtained to give "unit credit"
5) Creating a set of variables Per staff to accumulate, reset, and display Unit credit per staff.
After reading about arrays and trying to figure this out, I am guessing that I could use a dynamic array to simplify this and also save mass amounts of time in creating the addition summary columns requested. Would an array allow me to only have one formula equivalent to{#RTotDurDaystafflastname} and one set of variables to accumate all the unit credit for all staff at once? Or is there some easier way of doing this? Help!