I am using Crystal XI and need to pull in counts for each month in a 12-month period. The 12-month period can be different each time it is run.
The data is entered with an effective and termination date to capture eligibility.
Here is an example of how someone can be in they eligibility system:
Joe Q. Employee
Effective 3/1/2009 no termination date
Jane Q. Employee
Effective 8/1/2008 no termination date
Adam J. Smith
Effective 12/1/2008 termination date of 3/31/2009
The starting date of the 12 month period for counts is 1/1/2009. Data should count as shown below:
Month 1 Counts (1/1/2009-1/31/2009) = 2
Month 2 Counts (2/1/2009-2/28/2009) = 2
Month 3 Counts (3/1/2009-3/31/2009) = 3 (Joe Q should now add to the count because he is effective 3/1/2009)
Month 4 Counts (4/1/2009-4/30/2009) = 2 (Adam J should now drop from the count becasue he termianted 3/31/2009)
Month 5 Counts (5/1/2009-5/31/2009) = 2
etc..
We had a previous report in Crystal 8.5 with a different eligibility system where we created a Parameter (Starting Date) and a formula for each month. It would look at the effective date, startingdate parameter and termination date to give a number to sum up later. Here is the syntax for Month 1 of the formula:
IIF (({EffectiveDate}<= {?StartingDate}) and ({Termdate}>= DateAdd ("d", -1, (DateAdd ("m",1 ,{?StartingDate} )))),1 , 0)
The data is entered with an effective and termination date to capture eligibility.
Here is an example of how someone can be in they eligibility system:
Joe Q. Employee
Effective 3/1/2009 no termination date
Jane Q. Employee
Effective 8/1/2008 no termination date
Adam J. Smith
Effective 12/1/2008 termination date of 3/31/2009
The starting date of the 12 month period for counts is 1/1/2009. Data should count as shown below:
Month 1 Counts (1/1/2009-1/31/2009) = 2
Month 2 Counts (2/1/2009-2/28/2009) = 2
Month 3 Counts (3/1/2009-3/31/2009) = 3 (Joe Q should now add to the count because he is effective 3/1/2009)
Month 4 Counts (4/1/2009-4/30/2009) = 2 (Adam J should now drop from the count becasue he termianted 3/31/2009)
Month 5 Counts (5/1/2009-5/31/2009) = 2
etc..
We had a previous report in Crystal 8.5 with a different eligibility system where we created a Parameter (Starting Date) and a formula for each month. It would look at the effective date, startingdate parameter and termination date to give a number to sum up later. Here is the syntax for Month 1 of the formula:
IIF (({EffectiveDate}<= {?StartingDate}) and ({Termdate}>= DateAdd ("d", -1, (DateAdd ("m",1 ,{?StartingDate} )))),1 , 0)