Greetings,
Crystal 9:
I am trying to develop a formula to evaluate member records based on date ranges to calculate effective dates for coverage.
fields:
db.member_id; db.plan_id; db.start_date; db.end_date
A member id can have multiple start and end dates for each plan, but they can only have one plan at any given time.
Possible output:
member#1
01/01/06(start) - 01/01/06(end) : canceled status
02/01/06(start) - 02/28/06 (end) :end of plan
03/01/06(start - null(end): currently active
In the above refrenced example, I would want a formula that would evaluate all three date ranges, and return a start date of 02/01/06 and an end date with a null value.
if the 02/01/06 ended on 02/01/06 as well, I would only want the 03/01/06 returned.
if 01/01/06 ended on 01/31/06 in the very first example, then i would want the 01/01/06 returned as the start date for the record.
All dates start at the beginining of the month, and will go to the last day of the month if the plan was active. If the plan was canceled, then it begins and ends on the first day.
I currently have the records grouped by Member, then by plan status (active, canceled, covered)
An active always has a null record for the end date; the canceled always has start date = end date; and the covered has a start date <> end date, but not null either.
Any pointers are appreciated! thank you.
Crystal 9:
I am trying to develop a formula to evaluate member records based on date ranges to calculate effective dates for coverage.
fields:
db.member_id; db.plan_id; db.start_date; db.end_date
A member id can have multiple start and end dates for each plan, but they can only have one plan at any given time.
Possible output:
member#1
01/01/06(start) - 01/01/06(end) : canceled status
02/01/06(start) - 02/28/06 (end) :end of plan
03/01/06(start - null(end): currently active
In the above refrenced example, I would want a formula that would evaluate all three date ranges, and return a start date of 02/01/06 and an end date with a null value.
if the 02/01/06 ended on 02/01/06 as well, I would only want the 03/01/06 returned.
if 01/01/06 ended on 01/31/06 in the very first example, then i would want the 01/01/06 returned as the start date for the record.
All dates start at the beginining of the month, and will go to the last day of the month if the plan was active. If the plan was canceled, then it begins and ends on the first day.
I currently have the records grouped by Member, then by plan status (active, canceled, covered)
An active always has a null record for the end date; the canceled always has start date = end date; and the covered has a start date <> end date, but not null either.
Any pointers are appreciated! thank you.