Hi, I'm using CR 2008. I have a report grouped by patient account number and transfer in date.
Each account can have multiple transfer in and transfer out dates. I want to display all the dates and times, and add a field that counts patients who are new for that day.
For example, on 12/1/2010 Patient B below transferred in on that date. I would like to add a field that shows a "1" or a "0" next to each line and summarize that field in a group footer.
Desired output:
Acct Transfer In Transfer Out New Patient?
Patient A 11/29/2010 4:23PM 11/29/2010 11:59PM 0
Patient B 12/1/2010 7:32AM 12/1/2010 9:01AM 1
Patient B 12/1/2010 9:01AM 12/1/2010 4:13PM 0
Total 1
The formula I started with is: if {TransferInDate} = date(2010,12,01) then 1. However, it returns a 1 on every line rather than just the first line.
I tried adding Minimum({TransferInDate}) to the above formula, but I can't summarize that field.
Running Totals can show the first and last date for each patient, but I can’t summarize those fields either.
Any way to do this?
Each account can have multiple transfer in and transfer out dates. I want to display all the dates and times, and add a field that counts patients who are new for that day.
For example, on 12/1/2010 Patient B below transferred in on that date. I would like to add a field that shows a "1" or a "0" next to each line and summarize that field in a group footer.
Desired output:
Acct Transfer In Transfer Out New Patient?
Patient A 11/29/2010 4:23PM 11/29/2010 11:59PM 0
Patient B 12/1/2010 7:32AM 12/1/2010 9:01AM 1
Patient B 12/1/2010 9:01AM 12/1/2010 4:13PM 0
Total 1
The formula I started with is: if {TransferInDate} = date(2010,12,01) then 1. However, it returns a 1 on every line rather than just the first line.
I tried adding Minimum({TransferInDate}) to the above formula, but I can't summarize that field.
Running Totals can show the first and last date for each patient, but I can’t summarize those fields either.
Any way to do this?