I need to list the highest patient count during last year. Each patient {Patient.PatientID}, has a start date {Patient.StartDate} and an end date {Patient.EndDate}. I am calculating if a patient is active during the year with the following:
{Patient.StartDate} <= {?End Date} // 12-31/2010
and (IsNull ({Patient.EndDate})
or
{Patient.EndDate} >= {?Start Date}) // 01/01/2010
I would hate to run this for each day of the year. So, I am looking for a possible Cross Tab that shows each day of the year and how many patients were active on that day. Then I can show the entire year and select the Maximum and Minimum Patients that were active during the year. I could also see the dates that the Max and MIN occured on.
Help Please
{Patient.StartDate} <= {?End Date} // 12-31/2010
and (IsNull ({Patient.EndDate})
or
{Patient.EndDate} >= {?Start Date}) // 01/01/2010
I would hate to run this for each day of the year. So, I am looking for a possible Cross Tab that shows each day of the year and how many patients were active on that day. Then I can show the entire year and select the Maximum and Minimum Patients that were active during the year. I could also see the dates that the Max and MIN occured on.
Help Please