Group by DateTime + Extended time

I have a date time field interval in my database.  The interval is every day at 30 minute intervals.  I need to run the report and group 'operating hours' which are 7:00am to 3:00AM the next day.  By default, if I group by datetime, the Group footer is ending at the 11:30pm mark, showing the totals and then going to the next page and treating 12:00am-3:00am as a seperate group. 
Is it possible to group this so that it shows the operating hours in 1 group?  Another key is I need to run the report for multiple date ranges at 1 time.
Thanks

Try to group by this formula..this will group the record in the desired time range..then create your group for every 30min
IF {Command.Open Date} >=DATETIME(DATE({Command.Open Date}),TIME(07,00,00))
AND {Command.Open Date} <=DATETIME(DATE({Command.Open Date})+1,TIME(03,00,00)) THEN
CSTR(DATETIME(DATE({Command.Open Date}),TIME(07,00,00)))&' - '& CSTR(DATETIME(DATE({Command.Open Date})+1,TIME(03,00,00)))
ELSE 
IF {Command.Open Date} <DATETIME(DATE({Command.Open Date}),TIME(07,00,00)) THEN
CSTR(DATETIME(DATE({Command.Open Date})-1,TIME(07,00,00)))&' - '& CSTR(DATETIME(DATE({Command.Open Date}),TIME(03,00,00)))
ELSE
IF {Command.Open Date} >DATETIME(DATE({Command.Open Date})+1,TIME(03,00,00)) THEN
CSTR(DATETIME(DATE({Command.Open Date})+1,TIME(07,00,00)))&' - '& CSTR(DATETIME(DATE({Command.Open Date})+2,TIME(03,00,00)))
HTH,
Jyothi

Similar Messages

  • How do I restore Groups to Contacts from time machine?

    How do I restore groups to Contacts using time machine?  I somehow managed to duplicate many groups and contacts in Contacts, so I deleted everything and tried to restore them using time machine backup  from a few days before.  It restored all my contacts, but none of my groups.  If you select a group and click restore it will restore all the contacts in the group, but not the group itself.  I had many groups with many contacts in each and would really prefer not to do this manually.  I can see the groups in the time machine backup, but cannot figure out how to restore them.  I know from researching online that with Address Books and previous operating systems you could go to ~Library/Applications Support/AddressBook  and restore the whole file, but either this operating systems hides the necessary files or Contacts is set up differently than AddressBook was.  I am using OS 10.9.5 and Contacts version 8.0 on a MacbookPro 13 inch mid 2010.

    Here is what I have tried:
    1. Finder>Go>(Option)Library>Address Book(highlighted)with files showing in right column. Opened Time Machine and Address Book folder is there. Tried to go back to several previous dates from several months ago. None will highlight in order for the Restore button to light up.
    2. Finder>Mac HD (under Devices)>(Option)Library>Address Book (same as above). Again, cannot go anywhere back in time to highlight a date for Restore button to light up.
    Note: I was able to use Time Machine to restore my Contacts with no problem. However, they are All Contacts only and did not restore my Groups. I do know how to make groups again and highlight and drag them back, but wanted to see if there was a way to restore the groups. I will post another question as to why my Time Machine won't let me restore the Address Book as well as the Contacts. Thank you for your time and patience.

  • HT3529 My group messaging on/off label isn't showing up at all. I can only create group messages but every time someone starts a group chat it says its send to my number but I never got any text. I wen't to settings Messages and I can't find any on/off sw

    I can only create group messages but every time someone starts a group chat it says its send to my number but I never got any text. I wen't to settings>Messages and I can't find any on/off switch.

    Hello there, Idaniabb.
    The following Knowledge Base article offers up some great information in regards to group messaging and also links to another excellent resource for troubleshooting messages as well:
    iOS: Understanding group messaging
    http://support.apple.com/kb/HT5760
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • System freezes after extended time in standby after 10.6.2 update.

    After updating to 10.6.2 my laptop freezes if left in standby for an extended time...say 45 minutes. I then have to force the system to crash / shut down in order to restart. I have to do this several times per day. Any one else with this problem...and / or a fix?
    Thanx, Mark

    Sorry, topperharly, but I've tried everything suggested with no luck. I did the PRAM ~ NVRAM and SMC resets, I also tried the safe boot....no go. For now I have merely resorted to setting the laptop "energy saver" sleep time to "never." I don 't particularly like doing this to the computer, but it is better than having to force if off several times a day. Even when I shut it down manually, the next time I turn it on there is no video. So, I have to force it off, and the second time the video usually comes up. I'm afraid that one of these times it won't.
    I hope Apple is aware of this. There are not many people posting to this thread. I have an extended warranty, and will call Apple tomorrow. If I learn anything, I'll pass it on.
    Good luck, mark

  • I am having a problem where pdf files on the web (i.e., links in a Word doc) open after an extended time and only as gobbldygook ( a file containing a series of characters and letters that make no sense).  This also happens for another Mac user coworker

    Hi There:  I am having a problem where pdf files on the web (i.e., links in a Word doc) open after an extended time and only as gobbldygook ( a file containing a series of characters and letters that make no sense).  This also happens for another Mac user coworker in my office, while the PCs don't have this problem...  Any help/suggestions for a fix would be most appreciated! 

    Just adding more info - MacBookPro running 10.5.8 and using Safari as the browser.  The problem comes and goes - sometimes the linked Word files will open OK, n others its just a strring of crazy characters... 

  • Trying to extend time in a template by copying scene & pasting

    Trying to extend time in a template by copying scene & pasting in at the end, but with a different video inside the provided video holder.

    Hi rick, I have a template that has 6 scenes.
    1. Intro.
    2. Video / Photo placeholder scene.
    3. Video / Photo placeholder scene.
    4. Video / Photo placeholder scene.
    5. Video / Photo placeholder scene.
    6. Outro Scene.
    I would like to use scene 2 again after scene 5 but not use the same Video / Photo place holder.
    I'm trying to insert a new video in the new place holder that would actually become scene 6, but it keeps dislayin the same video as scene 2.
    My new total scenes would be 7 instead of 6.

  • Can I extend time capsule by adding external drive connected TC via USB?

    Hi,
    I use my TC drive for backups, i's now full. Can I extend time capsule backup drive by adding external drive connected TC via USB? If yes, how do I his? I have 1TB WD external drive connected via the TC's USB, I can see the WD drive in the finder and the TC set-up...but I don't know where to go from here...
    Thanks for your help
    Steveru

    Welcome to the discussions, Steveru!
    I think what you are asking is can you simply continue Time Machine backups by adding the new USB drive, correct? The answer is not exactly. See below for details.
    To use the new USB drive for Time Machine backups, you'll need to Open System Preferences (gear icon) on the dock and open Time Machine. Click on Select Disk and click your USB drive to highlight it, then click Use for Backup. Here's the rub....Time Machine will make a new full complete backup of everything on your Mac's hard drive. There's no way to avoid this. After that, it will continue to make scheduled incremental backups just like it did before on the Time Capsule.
    If you ever need to go back to your original backups on the Time Capsule, you'll need to right-click the Time Capsule icon on the dock and choose Browse Other Time Machine Disks.
    When the USB drive start to fill, you may decide that you no longer need all the old backups on the Time Capsule disk since you should have a good history of backups on the USB drive at that point.
    So, you could erase the Time Capsule disk and then start backing up to the Time Capsule disk again. At that time, it will also make a complete backup on the first pass and then normal incremental backups from that point forward. When the TC begins to fill again, then you could erase the older backups on the USB drive and start backups again on that drive. Then switch to the other drive in the future to keep things going indefinitely. If you go with this type of flip flop plan, you should always have a solid history of many months of backups at any given time.
    Will a plan like this work? I don't answer a question on the forum unless I've done it myself. This has been working well for me for almost 3 years.
    Pondini, the resident expert on Time Machine and Time Capsule affairs, may have some comments on this as well. If you haven't already seen his excellent guide, Using Time Machine with a Time Capsule or +Time Machine FAQ+, these are the best available sources of information on this subject on the Internet.
    Or, if you don't want to erase any your backups, you could of course keep adding a new USB drive when the current drive is about to fill.

  • Each wiki group is listed 4 times

    Hello All - I finally got the Wiki function working, but for some strange reason each wiki group is listed 4 times on the "Available Group Wikis" page.
    EXAMPLE:
    Available Group Wikis
    Desktop
    Desktop
    Desktop
    Desktop
    WebDev
    WebDev
    WebDev
    WebDev
    Setup with services running:
    MasterOD - Xserve 10.5.4 (AFP, OD, SMB)
    ReplicaOD - PowerMac G5 10.5.4 (AFP, MySQL, NetBoot, OD, Software Update, Web)
    I only have one website running and it's for the wikis. I left the domain name blank as suggested in another thread.
    I checked /Library/Collabration/Groups and each group folder is only listed once. The URL to each of the repeated group wikis points to the same location. All functionality seems to be working, it just lists each wiki 4 times.
    Any ideas or suggestions?
    Thanks!
    - Jason

    Same problem here, but I only have my groups listed twice (lucky?). I have no idea why this happend (software update?).

  • Itunes freezes up when my iphone or ipad is connected and charging for an extended time like charging over night.

    Itunes freezes up when ipad or iphone is connected via USB for an extended time like charging over night or even several hours. I am running all current software with all updates on a Macbook Pro. When I hit Eject I get the spinning beachball and have to hit command-option-escape to get out of it or the beachball will stay present forever. Any suggestions?

    Looks like new firmware upgrade solved this issue.

  • Extend time capsule with a time capsule

    I have two time capsules.  Can I wirelessly extend the range of one with the other?

    Yes, you can if the "extending" Time Capsule is located where it can receive a strong wireless signal from the "main" Time Capsule.
    Keep in mind that an "extending" device can only extend the quality and speed of signal that it receives, so a good general location for the extending Time Capsule would be a point that is about half way between your main Time Capsule and the general area that needs more wireless coverage.
    Your next question might be "how do you do this?"
    The answer will depend on what version of operating system that you have on your Mac or PC, or whether you want to use an iPhone or iPad to configure things.
    If you have a Mac, and do not know what opeating sysem it is using, click the Apple icon in the upper left corner of the screen, then click About This Mac. Post back with the OS X version number that you see there.

  • I have a PC and I am not able to download photos a group at a time.  It deletes the prvious group of photos each time.

    I have a PC and I am not able to download photos a group at a time.  It deletes the previous group of photos each time I download new ones.

    You need to sync all the photos that you want on the iPad in one go - not including photos in a subsequent sync is the way that you delete them from the iPad (as you've found out). To sync multiple photo folders they will need to be directly off the same parent folder so that you can sync them together.
    More info on photo syncing : http://support.apple.com/kb/HT4236

  • Extend time in Timeline of imported 3D object for animation in CS4?

    Hello guys,
    I have very strange problem with CS4 and imported either 3DS or OBJ files:
    When I open 3DS or OBJ file, lets say - a car object, I draw some dirty textures over it and then open Animation window and want to animate
    it by simple rotation. When I open animation window with timeline, I then go to pull-down menu to the right and open Document Settings.
    Then I set time from default 3:10 seconds animation lenght to 10:00 seconds, for example, and set playback speed from 30 to 25fps.
    But then - I can NOT extend manually timeline of selected object I want to animate. It is FIXED to 3:10 seconds.
    Is it a bug and how to avoid it?
    My solution was - to open this object into 3D Studio Max and then in its time line set from 100 frames to lets say - 500 frames animation lenght and then save back again, but this is very slow operation and requires full working 3D Studio that my firm do not have...
    Any ideas about how to extend time in animation timeline of imported 3D objects for animating in CS4?
    Thank you very much.
    n.

    You did not look down far enough. Below them are some layers in blue (or other solid color) Twirl down the one that says 3D Meshes. Click on the small stopwatch for the object move your playhead ahead in time then rotate your mesh. The easiest way to rotate the mesh is using the text fields in the mesh's properties.

  • Unable to get Airport Express to extend Time Capsule via WDS

    Hi all,
    I have a Time Capsule that's a couple years old, and recently decided to try to extend its network given that we recently did a lot of re-arranging things in our home.  I followed the instructions posted here for using version 5.5.2 of the Airport Utility but I'm not having any luck...  I've triple-checked that the SSID, security settings, etc. are identical between the two devices.  I set the Time Capsule as the main WDS device and entered the airport ID of the Airport Express into it, and set the Airport Express as the remote WDS device and put the airport ID of the Time Capsule there.  As far as I can tell I've got all the settings correct.
    What really confuses me is that I can get the two devices so that the Time Capsules status light is green but the Airport Extreme's status light is yellow.  The Time Capsule reports that WDS is functioning properly but the Airport Extreme is unable to connect to the WDS network.  I have the two devices only about 5 feet from each other so signal strength certainly shouldn't be an issue. 
    Any ideas what's going on?
    Thanks,
    -Bruce

    I would not use WDS unless your AEX is so old that is all it supports.  Much easier to configure the TC to allow the network to be extended under the Wireless tab.  Then configure the AEX's Wireless Mode to Extend Existing Network from the dropdown menu.

  • Use DSAdd Group for adding several groups at the same time

    Good Afternoon!,
    As is written in my book:
    "By leaving the DN parameter empty, at which point you can type the DNs one at a time at the keyboard console of the command prompt. Press Enter after each DN. After the last DN, press Ctrl+Z, and then press Enter"
    Now I'm trying and this is what is happening:
    PS AD:\ou=groups,dc=contoso,dc=com> dsadd group -secgrp yes -scope g
    cn=test,ou=groups,dc=contoso,dc=com
    cn=test2,ou=groups,dc=contoso,dc=com
    cn=test3,ou=groups,dc=contoso,dc=com
    ^Z
    dsadd failed:´cn=test2,ou=groups,dc=contoso,dc=com" is an unknown parameter.
    type dsadd /? for help.
    What is what i'm doing wrong??.
    Thank you!

    Hi,
    Have you tried this in a CMD prompt instead of using PowerShell?
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Is Airport Express the best way to extend Time Capsule wifi network?

    I have a Time Capsule which I use for wifi as well as backups. I would like to extend its wifi range. Is an Airport Express the best way to do this? Or would an Airport Extreme get better range? Thanks.

    Welcome to the discussions!
    You did not mention whether you are trying to extend using wireless only, but we'l assume that this is the case.
    The AirPort Express and the AirPort Extreme have the same range, so there would be no difference in performance between the two devices.
    If you have a newer dual band Time Capsule, a dual band AirPort Extreme would extend both bands...IF....the AirPort Extreme is positioned where it can receive a strong signal from the Time Capsule. The AirPort Extreme would also provide you with 3 ethernet ports if you needed to connect any ethernet devices.
    The AirPort Express will extend one band, as it is a single band device, but that may be all you need. Since the AirPort Express can plug directly into an AC outlet, it is usually somewhat easier to place the device where it will be needed.
    A good location for an extending device is a point that is about 1/2 to 2/3 the distance from the Time Capsule to the area that will need more wireless coverage, assuming there no major obstructions in the signal path. The idea situation would have the extending device placed where it has close to a line-of-sight relationship with the main router.
    Post back if you need configuration details on the extending device, or if you need more information.

Maybe you are looking for

  • Can't boot in safe mode - RAID startup disk

    hi .. my macpro has a mirrored RAID as a startup disk (using HD bay 1 & 2) ... i am trying to boot into safe mode but this does not work at all, even when holding down the shift key it starts up in normal user mode. Is there a way to do this ? is it

  • White screen in CIC BP

    Hello all, I am working on the CRM IDES system. When I try to login to CIC, I manage to login but a white screen appears in the application area. I have checked the standard customization settings. Does anyone have a clue? Thanks

  • Movie is loading twice

    Structure: * one main movie ** one swf loaded into that *** one mc in that I animate the mc using the timeline (movement up) and on the first frame of the same mc I generate up an interface inside it. This all works, but: When the mc has generated th

  • Problem resetting mysql root password

    I have install 5.5.20 from mysql from the TAR file. that install was done from an admin user by the name of mysql. Using the mysql user, I have reached a point where I am unable to reset the root password. I have tried both method of resetting the pa

  • Does home sharing work in windows 8

    Unable to do home sharing of itune library on my new computer running windows 8.  What to do!!!