M
Michael Noblet
I have a report that is grouped by department and has the
following fileds:
department
Discharges (Number)
MedicarePayments (Number)
in the detail section for any given discharge there could
be any number of Medicare payments. for example
department Discharges MedicarePayments
Cardiology 1 2
For each departments detail section there are multiple
entries. I have a sum for the number of discharges in the
group footer. I need to take an average of the medicare
payments for the group. The problem arises in that I do
Not want the records with 0 for a Medicare payment to
count in the denominator of the average equation. so the
example below applies:
discharges MedicarePaymets
1 1
1 2
1 0
1 0
Mathematically speaking it the average should be .75 but
the number I need is 1.5 or 3/2. is there a way to count
the records for a group that do not equal 0 so they can
then be used in a math formula?
following fileds:
department
Discharges (Number)
MedicarePayments (Number)
in the detail section for any given discharge there could
be any number of Medicare payments. for example
department Discharges MedicarePayments
Cardiology 1 2
For each departments detail section there are multiple
entries. I have a sum for the number of discharges in the
group footer. I need to take an average of the medicare
payments for the group. The problem arises in that I do
Not want the records with 0 for a Medicare payment to
count in the denominator of the average equation. so the
example below applies:
discharges MedicarePaymets
1 1
1 2
1 0
1 0
Mathematically speaking it the average should be .75 but
the number I need is 1.5 or 3/2. is there a way to count
the records for a group that do not equal 0 so they can
then be used in a math formula?