I need to create a formula that adds up all the DosageAmounts for a PatientID by DrugName. My report is grouped by DrugName.
I want the report to look like:
GROUP: DrugName
GROUP: DailyDosageGrouping (0 mg - 10 mg, >20 mg)
DETAIL: PatientID#43 DosageAmount 10 mg
(supressed) PatientID#43 DosageAmount 5 mg
PatientID#43 DosageAmount 20 mg
PatientID#600 DosageAmount 8 mg
PatientID#2 DosageAmount 2 mg
PatientID#2 DosageAmount 10 mg
DailyDosage #Patients %ThisDrug'sPatients vgDailyDose
0 mg - 10 mg 1 33.3% 8 mg
>20 mg 2 66.6% 23.5 mg
Is there a way to sum up the dosageamounts for a patient then apply that value to the DailyDosageGroup formula so that I can get my final numbers at the bottom of the report? I can't see anything in the Help files about summing beyond using one condition...I have two conditions.
I am using Crystal 7 with SQL7 backend.
I want the report to look like:
GROUP: DrugName
GROUP: DailyDosageGrouping (0 mg - 10 mg, >20 mg)
DETAIL: PatientID#43 DosageAmount 10 mg
(supressed) PatientID#43 DosageAmount 5 mg
PatientID#43 DosageAmount 20 mg
PatientID#600 DosageAmount 8 mg
PatientID#2 DosageAmount 2 mg
PatientID#2 DosageAmount 10 mg
DailyDosage #Patients %ThisDrug'sPatients vgDailyDose
0 mg - 10 mg 1 33.3% 8 mg
>20 mg 2 66.6% 23.5 mg
Is there a way to sum up the dosageamounts for a patient then apply that value to the DailyDosageGroup formula so that I can get my final numbers at the bottom of the report? I can't see anything in the Help files about summing beyond using one condition...I have two conditions.
I am using Crystal 7 with SQL7 backend.