Using Crystal 10 ...
I've got a formula to average the daily population at our facilities by month. I want to print all months daily average throughout a year in rows and then total the averages of our facilities within facility type. I believe I can't use crosstab to average and total simultaneously.
The report should look ~like this:
7/07 8/07 9/07
fac1 10 20 15 (daily average by month)
fac2 20 40 35
-- -- --
type1 30 60 50 (totals of monthly daily avg)
fac3 ... etc.
Am grouping by Facility Type, Facility, Year, Month, Day.
When I attempt to store the value of a particular month's average to print in the group footer & the evaluation for a particular month is false, the result resets zero. I have used formulas that bump counters conditionally many times, but have lost it on this one as I am averaging the counters only once per month/facility.
Here's a sample formula that is working in the respective month, but resetting to zero otherwise:
WhilePrintingRecords;
numbervar MnthlyDailyAvg;
If {@MonthNum} = 7 then MnthlyDailyAvg := {#Monthly Totals}/{#DaysInMnthNum}
Thanks for any and all help...
Brad Macdonald
I've got a formula to average the daily population at our facilities by month. I want to print all months daily average throughout a year in rows and then total the averages of our facilities within facility type. I believe I can't use crosstab to average and total simultaneously.
The report should look ~like this:
7/07 8/07 9/07
fac1 10 20 15 (daily average by month)
fac2 20 40 35
-- -- --
type1 30 60 50 (totals of monthly daily avg)
fac3 ... etc.
Am grouping by Facility Type, Facility, Year, Month, Day.
When I attempt to store the value of a particular month's average to print in the group footer & the evaluation for a particular month is false, the result resets zero. I have used formulas that bump counters conditionally many times, but have lost it on this one as I am averaging the counters only once per month/facility.
Here's a sample formula that is working in the respective month, but resetting to zero otherwise:
WhilePrintingRecords;
numbervar MnthlyDailyAvg;
If {@MonthNum} = 7 then MnthlyDailyAvg := {#Monthly Totals}/{#DaysInMnthNum}
Thanks for any and all help...
Brad Macdonald