Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crystal formula 1

Status
Not open for further replies.

p658484

Technical User
Feb 12, 2009
20
CA
Hello,
I would like a formula to extract the following information

1.admission April 1 discharge April 14
2.admission April 14 discharge April 25

The formula should excluded the cases when 1. discharge date = 2. admission date.

Thanks
 
You would have to use a section suppression formula like this:

(
not onlastrecord and
{table.groupfield} = next({table.groupfield}) and
{table.dischargedate} = next({table.admissiondate})
) or
(
not onfirstrecord and
{table.groupfield} = previous({table.groupfield}) and
{table.admissiondate} = previous({table.dischargedate})
)

I added in the group clauses, as I assumed you might be doing this within a group, e.g., on patientID.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top