I have a report that displays all departments a patient has been in during their hospitalization. The report is grouped by Patient Account, a field in the details lists all departments the patient was in. Sample with relevant fields:
Group 1 : Patient Acount - 1234
Patient Account Dept ID Dept Name Date ICU Formula
1234 123 Gen Med 5/10/2012 0
1234 456 ICU 5/12/2012 1
1234 123 Gen Med 5/16/2012 0
I need to display in the group footer the Dept Name when it is an ICU department.
I created a formula to identify the ICUs and placed it in the details:
If {table.Dept_ID} in [456,137,689] then 1 else 0
I placed another formula in the group footer to identify when @ICUFormula = 1:
If {@ICU Formula} = 1 then {table.DEPT_ABBREVIATION}
This formula only displays the icu if it was the last location in the list. Appreciate any suggestions as I am working on a tight timeline. Thanks!
Group 1 : Patient Acount - 1234
Patient Account Dept ID Dept Name Date ICU Formula
1234 123 Gen Med 5/10/2012 0
1234 456 ICU 5/12/2012 1
1234 123 Gen Med 5/16/2012 0
I need to display in the group footer the Dept Name when it is an ICU department.
I created a formula to identify the ICUs and placed it in the details:
If {table.Dept_ID} in [456,137,689] then 1 else 0
I placed another formula in the group footer to identify when @ICUFormula = 1:
If {@ICU Formula} = 1 then {table.DEPT_ABBREVIATION}
This formula only displays the icu if it was the last location in the list. Appreciate any suggestions as I am working on a tight timeline. Thanks!