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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate Running Total

Status
Not open for further replies.

newbie0423

IS-IT--Management
Oct 29, 2012
103
US
Hello,

Using crystal XI
I have created a report that looks at the time patients enter the OR and the time they come out. I have grouped this report on the patient's out of room time. We are trying to get a count of the rooms that we have running at a particular time for staffing. From 7:00am to 3:00pm we can run 16 rooms. after 5:00pm we can run 8 rooms, and after 7:00 we can run 5 rooms. I have a running total that give me the count of the cases in each group. My report looks like this:

7:00
Rm 1 7:30 7:54
1
8:00
Rm 2 7:43 820
Rm 10 746 836
Rm 15 747 843
3
9:00
Rm 7 7:46 9:00
Rm 9 7:43 901
Rm 15 8:10 950
3
10:00
Rm 12 8:43 10:11
Rm 14 7:54 10:19
Rm 9 8:56 10:24
Rm 2 7:45 10:50
Rm 3 9:10 10:55
5

etc.....


Is there a way in crystal to only count the cases that occur after the 3:00 hour and later.

Thanks for you help
 
Hello,


I'm guessing that you are trying to get the no. of rooms for times between 7am-3pm then 3pm-7pm and 7pm - 7am

if you are looking for no.of rooms after 3pm then you can use the formula in the running total


When you go to create running total wizard under Evaluate -> Use a Formula

In this you can write the formula like time(outdate ) > 15:00

Hope this helps.

Please post what is the final result you are expecting.
 
Hello,

Thank you for responding. Are shifts changes at 3,5,7 The final results that I am expecting are:

3:00
11 rooms

5:00
8 rooms

7:00
5 rooms

Thanks
 
You do the same like I mentioned earlier


Use the time periods in the formula

For 7am - 3pm shift

You use formula in the running total like

outtime >7am and outtime <3pm

same for others

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top