Pulling time used for only a certain time period for 11 different fields.

I have a report that pulls my OR room case times. Each room is set to different "open" times, ( rm1 open 12 hours, rm 2 open 12 hours, room 3 open 12 hours, room 4 open 7.5 hours, with Room 7 "off duty", etc.)  I only want to pull data for the times my rooms are open, so if room 1 starts at 7am and a case goes past 7pm, i dont' want it to return any data for after 7pm. I only want the times that exist, if any, from the time my room opens to the time it is suppose to close. Currently i have a subreport built in that is totaling "all" the times for each room individually. I need to set the times it pulls for each of my room to reflect my open times to see if we have 100% utilization of the rooms. Is it possible to do this for each room ( i have 11 OR Rooms) by writing a formula?  I am new to crystal report writing so i'm can't figure out how to make this work. Please help.

Personally, I question the logic of cutting off the time at "closing time" for each room.  Regardless of the "normal open hours", I think it would be hugely beneficial to know if a OR is used outside of normal hours, and seeing a utilization of 110% would be a good indication.  (You might want to open another OR, or hire more doctors, or...)  If a triple organ transplant is gonna take 14 hours (made up data; I'm no surgeon!), I would think you'd want to see 116.7% utilization...
That being said, if you're convinced that the cutoff is the right choice, you probably want to link the usage data to a table with the OR hours, then use the Time() function and compare the start/stop timestamps to the open/close times of the OR, and use the larger (start) or smaller (end) values.  Something like (basic syntax):
if Time({oper.startTime}) < {or.openTime} then
  formula = {or.openTime}
else
  formula = {oper.startTime}
end if
HTH,
Carl

Similar Messages

  • 180 GB of my 639-GB Macintosh hard drive is used. 320 GB of my 498-GB Tie Capsule is used. Only one backup ("now") exists for the Time Capsule, which can no longer backup because of "insufficient space". How come? What is wrong?"

    180 GB of my 639-GB Macintosh hard drive is used. 320 GB of my 498-GB Tie Capsule is used. Only one backup ("now") exists for the Time Capsule, which can no longer backup because of "insufficient space". How come? What is wrong?"

    Thank you William for your most helpful response. I shall deal first with your three comments:
    Not being tech savvy, I would not have been able to make that call myself but it sure makes sense.
    I have updated my profiles as you suggest.  Excellent tip.
    This guidance is good.  Being new to Apple Support Communities, I did not find the field a labeling and guidance to be clear, a point you make.  Now I know, I shall do as you say and will use the small slim box as a header to the full message/question, which will place in the larger box below.
    Secondly, I come to your question: Did anything change on your Mac recently, such as replacing the disk or main logic board?
    The answer is “yes”.  Two events have happened both of which concerned the Time Capsule:
    The telephone company, with which I have access to the Internet and I have my email account, installed a new modum.  After the technician left I had to try and get the Time Capsule and WiFi working again which ended with my having to call Apple for technical assistance.  The Apple technician walked me through a number of procedural steps which effectively re-set up the Time Capsule. 
    Access to the Internet failed and the telephone company reset the modum.  I had to call Apple again.  This time the technician did not reset the Time Capsule but walked me through a number of steps tha included renaming the “site”  (not the Time Capsule).
    Another piece of information that may be relevant is that the MacBook Pro uses the Time Capsule for backup.  Everything appears to be in order.  When I enter the Time Capsule for this laptop I have backups going back for a long time.
    Also, I do a weekly backup of the two computers onto another external hard drive using the Time Machine software.  So I have another backup of both computers.

  • How I can set up the DynDns inside the Time capsule, or only with the Time capsule I have external access from a PC for ex.?

    How I can set up the DynDns inside the Time capsule, or only with the Time capsule I have external access from a PC for ex.?

    MobileMe service is finished.. to get remote access to the Mac or TC you use iCloud account.. but that is for files.. not to access web cams.
    Without dyndns client in the TC, you can perhaps run dyndns on the computer or video recorder..many of these will have clients built into them.
    Even better get a static Public IP from your ISP.. that is the correct professional way to do it.
    Or you can use whatever broadband modem you have and remove the TC as the main router.. simply bridge it. Use your adsl router for connection. Almost all adsl have built in dyndns.
    Sorry your language is very hard to follow.. and I am sure you are finding my answers similarly difficult.
    Basically the TC is about the hardest device to setup because it is lacking important networking functions.
    Get a vpn router and use vpn connection is far superior to any other method. But you cannot do it with TC.

  • Mechanism that runs my application only at certain times of the day

    Hi,
    As my title suggests, i'm looking for some code that will allow me to run parts of my application only at a certain time in the day. More specifically, I want the code to run these parts of the application at 5pm only on weekdays.
    I've tried various different types of loops to do this, but can't find anyway to do it.
    Could somebody suggest a better way of doing it?
    Thanks in advance.
    Here is some example code of what I tried:
    public static void main(String[] args)
         // TIMER
         Calendar cal = new GregorianCalendar();
         // Get the components of the time
         int hour24 = cal.get(Calendar.HOUR_OF_DAY); // 0..23
         int min = cal.get(Calendar.MINUTE); // 0..59
         int today = cal.get(Calendar.DAY_OF_WEEK);
         final int RUNH = 17;
         final int RUNM = 0;
         app start = new app(); //starts the application
         while (!((hour24 == RUNH) && (min == RUNM)) || (today ==1 ) || (today == 6))
              // do nothing
         if((hour24 == RUNH) && (min == RUNM) && ((today != 1) && (today != 7))) // 5:00 on a weekday
              System.out.println ("Update Running " + hour24 + " " + min + " " + today); //runs some sort of update on the application
    }

    Something like this will work:
    long now = System.currentTimeMillis();
    GregorianCalendar cal = new GregorianCalendar();
    cal.set(Calendar.HOUR,17);
    cal.set(Calendar.MINUTE,0);
    cal.set(Calendar.SECOND,0);
    int day = cal.get(Calendar.DAYOFWEEK);
    int yearday = cal.get(Calendar.DAYOFYEAR);
    cal.set(Calendar.DAYOFYEAR,yearday + (day == Calendar.FRIDAY)? 3 : 1))
    long next = cal.getTime() //don't know... maybe needs another getTime()?
    Thread.currentThread.sleep(next-now);

  • Have you notice that in Facebook app you can @ people...but only at certain times?

    Has anyone else noticed that at certain times in Facebook app you can @ people and other times you can't? I can't seem to figure out when tho. Any ideas?

    Something like this will work:
    long now = System.currentTimeMillis();
    GregorianCalendar cal = new GregorianCalendar();
    cal.set(Calendar.HOUR,17);
    cal.set(Calendar.MINUTE,0);
    cal.set(Calendar.SECOND,0);
    int day = cal.get(Calendar.DAYOFWEEK);
    int yearday = cal.get(Calendar.DAYOFYEAR);
    cal.set(Calendar.DAYOFYEAR,yearday + (day == Calendar.FRIDAY)? 3 : 1))
    long next = cal.getTime() //don't know... maybe needs another getTime()?
    Thread.currentThread.sleep(next-now);

  • Can I use Signal Express for multiple customers for only the one time $699?

    How do I go about distributing Signal Expresss applications to multiple customers?

    Hi Nutter,
    Unlike LabVIEW, Signal Express doesn’t have any file distribution capabilities.  If your application uses only basic features, you could install the free LE version of Signal Express on as many computers as necessary.  If you need the full capabilities of Signal Express, however, you would need to purchase a license for each customer.
    An alternative to paying for Signal Express for each customer deployment would be to generate LabVIEW code from the Signal Express project and create an executable.  This process is described in the Knowledge Base articles Generate LabVIEW VIs from Signal Express and Deploying VIs generated in Signal Express.  Note that this method requires that you have LabVIEW installed on your development computer with Application Builder capabilities.
    Regards,
    Message Edited by Luke G on 05-02-2007 12:23 PM
    Luke
    Applications Engineer
    National Instruments

  • My iPhone 3GS will hold a full charge for only a short time, and gets very hot when not in use in my shirt pocket.  Any ideas?

    My 3GS iPhone will not hold full charge for very long.  It gets very hot in my shirt pocket even when hot in use.  Any ideas?

    Double-tapping the home button does not show apps that are running.  This is not a task manager, it is merely a list of recently used/accessed apps.
    Basic troubleshooting of the device is reset, restart, restore.  Has a reset or restore been tried?
    Check to see if updates exists for the apps, this could be a simple issue of a badly coded or buggy app that needs to be updated.

  • Touch ID works for only a short time

    Over the course of the last 3 weeks of ownership, I must have enterred and re-enterred my fingerprints into the Touch ID settings 20 times. Likely, it has been more often. Here's is what I'm experiencing that motivates this behavior: my finger prints fail to provide security access over about a 6 to 18 hour period of time after they were enterred.  Thus, I re-enter them. One of the 3 finger prints seems to reluctantly provide access.  Another odd thing is this: my son's and daughter's iPhone 5s' do not exhibit this behavior.  As such, it has become the joke that their father's OLD finger prints are not detectable by this most modern of devices.  I heard that there were other users with this same problem.  Any thoughts?  Yes I've rebooted.  Yes, I'm using the very latest iOS.

    There may be something to the OLD fingerprint idea. Onder fingers do not have as pronounced ridges as younger ones. The test would be to try some of your family's fingerprints on your phone, or yours on their phone.

  • After Effects crashing each time my composition hits a certain time

    Every time I either play back my composition or try to render it, it crashes when it hits the 12;06 mark. I've been working on the composition all day, and I didn't have this problem until I completely finished and I was going to play it back, and then it did the same thing when I tried to render it. I've tried it many times, rendering using both After Effects and the Adobe Media Encoder, and I've restarted my computer and nothing has worked.
    I have After Effects CC 13.2.0.49 and I have all the newest updates installed. I'm using OS X 10.9.5. Processor: 2.3 GHz Intel Core i7, Memory: 8 GB 1600 MHz DDR3. The files are .mov and I'm accessing them via an external hard drive.
    This is the alert that pops up:
    Is there anything I can do to stop this from happening? Or some kind of work around? I worked really hard on this project and I need it to render asap because it's due soon!

    If you get a crash on a specific frame the first thing to do is to move the CTI (Current Time Indicator) to 12;06 and then press the U key twice to look for new layers, effects or keyframes. The second thing to do is to look at your crash log. Usually you will see what is crashing on right at the top of the list. If you are looking at a memory leak or some other memory issue you can try opening the Secret panel of the preferences by going to After Effects>Preferences and holding down the shift key before you click. Open the Secret Preferences and set the cache to purge every few frames.
    If nothing is obvious then you should render an image sequence instead of a movie. For a lot of complex projects I just render an image sequence to start with because it's much easier to fix a few frames or go back and pick up where you left off. If  AE crashes you'll have the first frames you rendered and they will be perfect. You can then reset the start point of the render to the last good frame and try rendering the rest of the project. In many cases this will fix the problem and get you a movie that you can use. BTW, you get no audio with an image sequence so if you have edited audio in AE then you'll either need to either do the audio in Audition,  Premiere Pro, or AE and add the replacement audio there.

  • If I bought an iMac for the family and a MacBook Pro for my daughter between the period for the free Mountain Lion update, would we have to submit the request form twice?

    I do not understand what it means by "right to copy."

    I love the portability my powerbook gives me. You can use a PB in your setup. You can run an external monitor for either PB or MBP. You can node. Universal Binary menas it is an application which has the components written for both PPC and Intel chips-so you don't need to do conversion. Nodes won't require you buy a nother license. so the answer is down to how much the 2 upgrades and 1 crossgrades will set you back vs how much use you'll get out of them. IMO the iMac is inexpensive (I mean that in a good way-worth hooding on to). Maybe just look at a refurb PB unless you really have the extra cash.

  • How can I set a passcode that is only required at certain times of the day. Ie: my child needs access for school use, but don't want her playing iPad in the middle of the night. I cannot identify a way to have the iPad turn off or require a password

    I cannot find a way to enable my child's iPad to require a passcode only at certain times of the day.
    Yes I have used the clock/timer/ countdown - great to restrict how many minutes of iPad usage they get a day.
    But as my child requires the iPad in school for class lessons the usage at school varies maybe 30 mins 1 day and a few hrs on other days
    I want the ability to say set the iPad to not work between say 7pm and 7am, ( unless a passcode is entered) so my child isn't playing games on it in the middle of the night...
    Apple I cannot see anything in the settings that performs this function
    Help

    You can Remote Lock his iPad with Find My iPad using a computer at whatever time you like.
    http://support.apple.com/kb/PH2700
    Note: The iPad may be disabled if he tries the passcode too many times.

  • PC scheduling - after event and in certain time together

    Hi Experts,
    I have question concerning scheduling of the process chains. Our transactional data process chain needs to wait for certain job in R/3 to finish and only then we can run the PC. How do you set such event? Please be as detailed as possible.
    Currently we have one metachain running master data loads and then transactional data loads. My other question is if we can combine 2 events and start the TD only after both events (when MD loads and R/3 job finish as well). Or start TD loads only after certain time and after job in R/3 finishes.
    Can you please let me know your suggestions how to do that?
    Thank you,
    Michal

    Hi,
    Creat a process chain for master data load and one meta chain for Transaction data load and include it after master data load. Trigger the master load with even raise from R/3.
    You can raise a event in BW once the job get completed in R/3. This you can do by executing the BP_EVENT_RAISE function module with destination. The destination you can mention the target system and trigger a event. You can achieve this with ABAP program.
    After the master data load, the transaction data load will start in meta chain.
    Hope this helps.

  • Set iPad to download apps / updates at certain times?

    Is there a way to set up the iPad to download apps or updates only at certain times? I have a household with 4 iPads and a limited satellite data plan. Our plan allows for free downloads that don't count against our data limit from 2AM to 6AM, but I can't figure out a way to get the iPad to take advantage of this. Any suggestions??

    You can't figure out a way to do it because there is no way to do it. Under no circumstances can the iPad be programmed to start downloading apps or installing updates. That type of feature does not exist in iOS. Set your alarm for that time, wake up and start downloading.

  • Why is photo black and color draining when using black only?

    I am printing in fast draft, black only, why is my photo black being used?
    Am I wrong thinking photo black is just for the photo tray?
    Also my colors seem to be used as well.

    Hi,
    Color inks will drain slowly even we use black only because from time to time the printer needs to clean the print head(s) specially during warming up process.
    Regards,
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Configure VRF on 6500 using OSPF only

    Is it possible to create a VRF using only OSPF as the routing protocol on a private network?  I've only been successful using BGP and redistributing OSPF.  I've inherited a network that had BGP configured for Public routes, but has since been dismantled, yet BGP is still being used to redistribute OSPF routes on our private network.  I would like to move away from BGP and use OSPF only.  Thus the reason for my initial question.
    Regards,
    Chris

    I have read the article you linked above and performed some testing.  I have done some further research, and must clarify that the VRF I configured is not utilizing an ISP link.  This VRF is all internal on CE routers, no PE routers, so all my connections for the VRF are internal CE-CE. 
    I still cannot get the VRF to populate the routing table with the OSPF routes on interfaces I have configured for the VRF.  If i configure BGP to redistribute the routes, then the routing table populates fine.  However I do not want to use BGP.
    Please advise.

Maybe you are looking for