JonathanNYC
IS-IT--Management
I have a formula for turnover time (TOT) which I have placed in a report. The formula works fine and is as follows:
If onfirstrecord then 0 else
IF {pcmORroom.orName} = PREVIOUS ({pcmORroom.orName})
THEN ({@PatientINRoom} - PREVIOUS ({@PatientOutRoom}))/60
I am presently sorting the report by “Surgical Date” and then “orName” and then “Patient INRoom” order.
The group sort is important for deriving the TOT and I understand I can’t mess with that order. However, as a secondary report, I need to also sort all the output in ascending TOT order. I have done this, for now, by exporting the data to Excel and sorting on the TOT column.
Any possibility to have the TOT sorted (in ascending order) in another section of the report?
That is, one section would have data as (I have this part done already):
02/01/2007 AS 1 0.00
02/01/2007 AS 1 34.00
02/01/2007 AS 1 36.00
02/01/2007 AS 1 44.00
02/01/2007 AS 1 34.00
02/01/2007 AS 2 0.00
02/01/2007 AS 2 45.00
02/01/2007 AS 2 43.00
Another section would have data as:
02/01/2007 AS 1 0.00
02/01/2007 AS 2 0.00
02/01/2007 AS 1 34.00
02/01/2007 AS 1 34.00
02/01/2007 AS 1 36.00
02/01/2007 AS 2 43.00
02/01/2007 AS 1 44.00
I am using Crystal 10.0.
If onfirstrecord then 0 else
IF {pcmORroom.orName} = PREVIOUS ({pcmORroom.orName})
THEN ({@PatientINRoom} - PREVIOUS ({@PatientOutRoom}))/60
I am presently sorting the report by “Surgical Date” and then “orName” and then “Patient INRoom” order.
The group sort is important for deriving the TOT and I understand I can’t mess with that order. However, as a secondary report, I need to also sort all the output in ascending TOT order. I have done this, for now, by exporting the data to Excel and sorting on the TOT column.
Any possibility to have the TOT sorted (in ascending order) in another section of the report?
That is, one section would have data as (I have this part done already):
02/01/2007 AS 1 0.00
02/01/2007 AS 1 34.00
02/01/2007 AS 1 36.00
02/01/2007 AS 1 44.00
02/01/2007 AS 1 34.00
02/01/2007 AS 2 0.00
02/01/2007 AS 2 45.00
02/01/2007 AS 2 43.00
Another section would have data as:
02/01/2007 AS 1 0.00
02/01/2007 AS 2 0.00
02/01/2007 AS 1 34.00
02/01/2007 AS 1 34.00
02/01/2007 AS 1 36.00
02/01/2007 AS 2 43.00
02/01/2007 AS 1 44.00
I am using Crystal 10.0.