newbie0423
IS-IT--Management
Hello,
I'm using CR XI. I am working on a report that shows the time a procedure is scheduled,(@bookedtime) and the time the patient went into the room (@Ptintime). In my report I am finding the difference between the two times. However, there are times when the Ptintime is less then the bookedtime. This results in negative numbers. I would like to sum the results of the two numbers. What happens when I try to do this is that it adds all of the numbers and then subtracts the negative numbers. This causes the total to be incorrect.
Example
6
-38
29
43
Total = 78
But the report is subtracting the 38.
I there a way to add the positive numbers without subtracting the negatives
I'm using CR XI. I am working on a report that shows the time a procedure is scheduled,(@bookedtime) and the time the patient went into the room (@Ptintime). In my report I am finding the difference between the two times. However, there are times when the Ptintime is less then the bookedtime. This results in negative numbers. I would like to sum the results of the two numbers. What happens when I try to do this is that it adds all of the numbers and then subtracts the negative numbers. This causes the total to be incorrect.
Example
6
-38
29
43
Total = 78
But the report is subtracting the 38.
I there a way to add the positive numbers without subtracting the negatives