I have a shared variable formula in my subreport as
Shared numberVar ClientsServed :=DistinctCount ({Patient_Clin_Tran.patient_id}, {@CSPP})
The formula is placed in the group footer of the subreport. The formula in the main report is written as Shared numberVar ClientsServed;
When the ShVariable formula is placed in the main report group footer the number is correct…however it's for the group above it! The first grouping shows up as 0 and the second grouping shows the first grouping total and so on. How do I correct this? There is only one group in both the subreport and the main report and they are grouped on the same field.
Shared numberVar ClientsServed :=DistinctCount ({Patient_Clin_Tran.patient_id}, {@CSPP})
The formula is placed in the group footer of the subreport. The formula in the main report is written as Shared numberVar ClientsServed;
When the ShVariable formula is placed in the main report group footer the number is correct…however it's for the group above it! The first grouping shows up as 0 and the second grouping shows the first grouping total and so on. How do I correct this? There is only one group in both the subreport and the main report and they are grouped on the same field.