Performing SUM with time data

Hi,
is there a way to sum time data as following?
start_time: 10,15 AM
stop_time: 2,35 PM
I expect to do something like:
=(stop_time - start_time)
but this doesn't work.
Thanks anticipately.

Currently we support arithmetic formulas on 12 hour intervals only, i.e., you can perform the following action (Stop_time - Start_time) for Start_time: 1:00AM and Stop_time: 9:00AM.  Tables will display 8:00AM as the result.  Please make sure you select "date" as the data type for all the columns associated with this operation.
Thanks,
Varun

Similar Messages

  • Performance issues with Planning data load & Agg in 11.1.2.3.500

    We recently upgraded from 11.1.1.3 to 11.1.2.3. Post upgrade we face performance issues with one of our Planning job (eg: Job E). It takes 3x the time to complete in our new environment (11.1.2.3) when compared to the old one (11.1.1.3). This job loads then actual data and does the aggregation. The pattern which we noticed is , if we run a restructure on the application and execute this job immediately it gets completed as the same time as 11.1.1.3. However, in current production (11.1.1.3) the job runs in the following sequence Job A->Job B-> Job C->Job D->Job E and it completes on time, but if we do the same test in 11.1.2.3 in the above sequence it take 3x the time . We dont have a window to restructure the application to before running Job E  every time in Prod. Specs of the new Env is much higher than the old one.
    We have Essbase clustering (MS active/passive) in the new environment and the files are stored in the SAN drive. Could this be because of this? has any one faced performance issues in the clustered environment?

    Do you have exactly same Essbase config settings and calculations performing AGG ? . Remember something very small like UPDATECALC ON/OFF can make a BIG difference in timing..

  • System performance VS Real-time Data Acquistition

    How the ECC & BI system will be affected by Real-time Data Acquistition?
    If it affects performance, Is there any way to maintain the same system performance as without RDA?
    Need inputs on BI side, Basis and R3 side......

    Hi,
    Check the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/52/777e403566c65de10000000a155106/frameset.htm
    Good Blog.
    /people/kamaljeet.kharbanda/blog/2006/11/13/real-time-data-acquisition-bi2004s
    /message/1921395#1921395 [original link is broken]
    Regards,
    Malar

  • To cature records with time & date

    Hi All,
    How to capture records within the time and date when runing the program in backgorund finish before end of day and after finish.
    Thanks,
    bala

    HI,
    What type of records you are looking to capture. Regarding to which module(ex: SD,FI).
    After executing the programs in any mode, you can identify the corresponding updated records information with enterted time & date in the specific table.
    Ex: in FI if we post any document the records time data information will be updated in entered time & entered date field in docment header table(BKPF).
    Provide us the detailed issue you are facing.
    BR,
    Rajani

  • Issue with time/date change.

    Hello,
    I'm having issues after changing the time/date zone settings, after I change the time zone (new setting), apperently it is correctly saved while exit (it prompts), but when I return to see the time/date settings once again, the timezone remains the same as the old setting.
    I've tried by changing the source type: Blackberry, Network or Off but its the same.
    What can i do to solve this? firmware update?
    Thanks in advance,
    Regards.

    Ok, I was at the Apple Genius Bar yesterday, and among other things to address my frequent beachball concerns, the Genius repaired disk permissions and reset network settings.
    I checked the automagic time/date/time zone settings, and it worked perfectly.
    I get home, and the MacBook thinks I'm back in Rexford, Idaho again, throwing off my time zone and time. Argh!

  • Performance issue with Oracle data source

    Hi all,
    I've a rather strange problem that I'm stuck on need some assistance on.
    I have a rules file which drags data in via an SQL data source thats an Oracle server. If I cut/paste the 3 sections of "select" "from" and "where" into SQL-Developer and run the query, it takes less than 1 second to complete. When I run the "load data" with this rule file or even use the "Retrieve" with the rules file edit, it takes up to an hour to complete/retrieve the data.
    The table in question being used has millions of rows and I'm using one of the indexed fields to retrieve the data. It's as if the Essbase/Rule file is ognoring the index, or I have a config issue with the ODBC settings on the server that is causing the problem.
    ODBC.INI file entry for the Oracle server as follows (changed any sensitive info to xxx or 999).
    [XXX]
    Driver=/opt/data01/hyperion/common/ODBC-64/Merant/5.2/lib/ARora22.so
    Description=DataDirect 5.2 Oracle Wire Protocol
    AlternateServers=
    ApplicationUsingThreads=1
    ArraySize=60000
    CachedCursorLimit=32
    CachedDescLimit=0
    CatalogIncludesSynonyms=1
    CatalogOptions=0
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    DefaultLongDataBuffLen=1024
    DescribeAtPrepare=0
    EnableDescribeParam=0
    EnableNcharSupport=0
    EnableScrollableCursors=1
    EnableStaticCursorsForLongData=0
    EnableTimestampWithTimeZone=0
    HostName=999.999.999.999
    LoadBalancing=0
    LocalTimeZoneOffset=
    LockTimeOut=-1
    LogonID=xxx
    Password=xxx
    PortNumber=1521
    ProcedureRetResults=0
    ReportCodePageConversionErrors=0
    ServiceType=0
    ServiceName=xxx
    SID=
    TimeEscapeMapping=0
    UseCurrentSchema=1
    Can anyone please advise on this lack of performance.
    Thanks in advance
    Bagpuss

    One other thing that I've seen is that if your Oracle data source and Essbase server are in different geographic locations, you can get some delay when it retrieves data over the WAN. I guess there is some handshaking going on when passing the data from Oracle to Essbase (either by record or groups of records) that is slowed WAY down over the WAN.
    Our solution to this was remove teh query out of the load rule, run it via SQL+ on a command line at the geographic location where the Oracle database is, then ftp the resulting file to where the Essbase server is.
    With upwards of 6 million records being retrieved, it took around 4 hours in the load rule, but running the query via command line took 10 minutes, then the ftp took less than 5.

  • Performance issue with extreme data distribution using histogram

    Hi
    We have a performance stability issue which we later found out is cause by the bind variable and histogram for a particular column when it was use as part of equality predicate. Assume the column name is parent_id0.
    There is also an index on parent_id0.
    Our temporary workaround is to install the good plan when it is started.
    This is on database 10.2.0.3. I have a table with 2570149 rows, there is one common value(value 0) that represent about 99.91% of the total rows.
    When i do
    select parent_id0, count(*)
    from table1
    group by parent_id0
    order by parent_id0;
    I'm getting 187 rows and i would assume to have 187 buckets to have a better representation. The first row have the count nearly to 99.91%. The rest rows are having count something like 1 or 2 or less than 200.
    With the auto gather, Oracle came up with 5 bucket. When i check the sample size, i only see oracle uses 2.215% of all the total rows at that time.
    Column name Endpoint num Endpoint value
    PARENT_ID0     5,579     0
    PARENT_ID0     5,582     153,486,811
    PARENT_ID0     5,583     156,240,279
    PARENT_ID0     5,584     163,081,173
    PARENT_ID0     5,585     168,255,656
    Is the problem due to the wrong sample size and hence the histogram is miscalculated.
    When i trace the sql with 10053, i see something like this..seems like some value is not capture in the histogram.
    Using prorated density: 3.9124e-07 of col #2 as selectivity of out-of-range value pred
    What i need to do to have a correct and stable execution plan?
    Thank you

    Hi, its an OLTP environment.
    The problem is this sql has 4 tables to join, table1 (2.5 mil rows), table2 (4 mil), table3 (4.6 mil) and table4 (20 mil)
    By right, the table with the highest filter ratio is table1. However, from the plan, oracle is using table3 as the driving table. The moment i take away the parent_id0 as part of the predicate, Oracle choose the right driving table (table1).
    Here is the sql structure
    select ...
    from table1, table2, table3, table4
    where table1.id = :1 and table1.parent_id0 :=2
    and ...
    We have index on id column too.
    From the application, the application will never pass in value 0 for the parent_id0. Therefore, we will be querying 0.09 percent all the time from that particular query.
    p/s: i'm sorry that i'm not able to paste the exact sql text here

  • SQL Loader Oracle 10g problem in upload date with time data -- Very urgent.

    Hi
    I am trying to upload data using SQL loader. There are three columns in the table
    defined as DATE. When I tried upload a data like this '2007-02-15 15:10:20', it is not loading time part. The date stored as 02/15/2008' only. There is not time on that. I tried with many different format nothing work. Can please help me ?
    I have also tried with to_date --> to_timestamp it did not work.
    The application is going to be in production, I cannot change DATE to TIME STAMP. This is very urgent.
    LASTWRITTEN "decode(:LASTWRITTEN,'null',Null, to_date(:LASTWRITTEN,'YYYY-MM-DD HH24:Mi:SS'))",
    CREATEDON "decode(:CREATEDON,'null',Null, to_date(:CREATEDON,'YYYY-MM-DD HH24:Mi:SS'))",
    LASTUPDATEDON(21) "decode(:LASTUPDATEDON,'null',Null, to_date(:LASTUPDATEDON(21),'DD/MM/YYYY HH24:MI:SS'))"

    Your problem is most likely in decode - the return type in your expression will be character based on first search value ('null'), so it will be implicitly converted to character and then again implicitly converted to date by loading into date column. At some of this conversions you probably are loosing your time part. You can try instead use cast:
    SQL> desc t
    Name                                      Null?    Type
    LASTWRITTEN                                        DATE
    CREATEDON                                          DATE
    LASTUPDATEDON                                      DATE
    SQL> select * from t;
    no rows selected
    SQL> !cat t.ctl
    LOAD DATA
    INFILE *
    INTO TABLE T
    TRUNCATE
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
    LASTWRITTEN
    "decode(:LASTWRITTEN,'null',cast(Null as date),
      to_date(:LASTWRITTEN,'YYYY-MM-DD HH24:MI:SS'))",
    CREATEDON
    "decode(:CREATEDON,'null',cast(Null as date),
      to_date(:CREATEDON,'YYYY-MM-DD HH24:MI:SS'))",
    LASTUPDATEDON
    "decode(:LASTUPDATEDON,'null',cast(Null as date),
      to_date(:LASTUPDATEDON,'DD/MM/YYYY HH24:MI:SS'))"
    BEGINDATA
    2007-02-15 15:10:20,null,null
    null,2007-02-15 15:10:20,null
    null,null,15/02/2007 15:10:20
    SQL> !sqlldr userid=scott/tiger control=t.ctl log=t.log
    SQL*Loader: Release 10.2.0.3.0 - Production on Fri Feb 29 00:20:07 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 3
    SQL> select * from t;
    LASTWRITTEN         CREATEDON           LASTUPDATEDON
    15.02.2007 15:10:20
                        15.02.2007 15:10:20
                                            15.02.2007 15:10:20Best regards
    Maxim

  • Something wrong with time&date on OS X Snow Leopard

    I cannot associate this problem to any changes I might did on the system. The only thing I remember, on the last 2 days I updated my Time Machine Backup and applied all available patches through software updates, preparing for Lion.
    Following the symptoms:
    - calendar app only shows all meeting with minutes locked on xx:08. Suppose I add a new meeting, 14:30, it will shows 14:08 (picture below)
    - adding a new meeting, I cannot change the minutes field, it is locked on xx:08
    - Mail app, independent of what time I receive a new message, it will show xx:08 (picture below)
    - my screen saver shows the time locked on 11:08 (no picture)
    but
    - through terminal, date command shows the correct time and the finder clock also shows correct time (picture below)
    Tried already to play with system preferences date & time, reboot, but nothing changed.
    Is it a bug, virus (probably not)?
    Anyone, please help?

    fditt wrote:
    Tried already to play with system preferences date & time, reboot, but nothing changed.
    That's close to the likely culprit. 
    Try System Prefs > Language & Text > Formats.  In the Times section, click Customize.
    Make sure everything there is a blue "placeholder," not a specific time (like "08"):

  • Touch messing with Time/Date

    I have a 32 GB Touch, purchased relatively recently. Lately, I've noticed that it keeps changing the time and date, nearly invariably back to December 1969 or January 1970. The actual clock time is close, but typically off by a few hours. I've done multiple resets and restored the iPod at least 3 times since I first noticed the behavior. What seems to happen is that everything works OK for a few days until I need to recharge the battery. After taking the Touch off the charger, the time and date are changed back to the dawn of time.
    It appears others here have observed this problem, but I haven't seen any solution posted. I probably should take the Touch in to my nearest Apple store. Undoubtedly they will replace it, but I'm growing weary of reloading the whole thing, which takes several hours.
    Any other ideas before this goes back to the Daisy Hill iPod Farm?
    Message was edited by: Marc Feldesman

    I recently experienced this issue as well, and was able to fix it with little difficulty. Here's what I did.
    1. Disconnect your iPod from the computer.
    2. Make sure that the time and date on your computer is correct.
    3a. In iTunes, go to Edit => Preferences => Syncing.
    3b. You should see your device listed there, along with that same $#%& incorrect date and time. Select it and press "Remove Backup".
    4. Close out of and reopen iTunes.
    5. Reconnect your iPod. It will create a new backup to replace the one you just deleted, with the (hopefully) correct date and time, and your iPod's date and time will change to mirror that of your computer's.
    I hope that helps!

  • Help me with time/date

    hello
    i need to make for school an applet, that when i press a button the current time is showed. and an other button that also shows the current time. and a butten that i can calculate the time between the first click on button one and the second click on button two. can someone help me. this is my code can someone adjust it or explain how i can get times shown in my applet.
    // stefan v/d eeden klok
    package stefan;
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class stefan extends Applet{
    // buttons
    Button startknop;
    Button stopknop;
    Button telefoonknop;
    Button overigeknop;
    // textfields
    TextField startvak;
    TextField stopvak;
    TextField telefoonvak;
    TextField overigevak;
    public void init() {
    //layout
    setLayout( null );
    // buttons
    startknop = new Button( " start ");
    startknop.addActionListener( new startknopHandler() );
    stopknop = new Button( " stop ");
    stopknop.addActionListener( new stopknopHandler() );
    telefoonknop = new Button( " telefoon ");
    telefoonknop.addActionListener( new telefoonknopHandler() );
    overigeknop = new Button( " overige ");
    overigeknop.addActionListener( new overigeknopHandler() );
    // textfields
    startvak = new TextField( 12 );
    stopvak = new TextField( 12 );
    telefoonvak = new TextField( 12 );
    overigevak = new TextField( 12 );
    // layout
    startknop.setBounds( 10, 20, 60, 30 );
    stopknop.setBounds( 80, 20, 60, 30 );
    telefoonknop.setBounds( 150, 20, 60, 30 );
    overigeknop.setBounds( 220, 20, 60, 30 );
    startvak.setBounds(10,80,60,40);
    stopvak.setBounds(80,80,60,40);
    telefoonvak.setBounds(150,80,60,40);
    overigevak.setBounds(220,80,60,40);
    // add
    add( startknop );
    add( stopknop );
    add( telefoonknop );
    add( overigeknop );
    add( startvak );
    add( stopvak );
    add( telefoonvak );
    add( overigevak );
    public void paint( Graphics g ) {
    //Startknop
    class startknopHandler implements ActionListener {
    public void actionPerformed( ActionEvent e ) {
    // shows the current time of clicking startknop in startvak
    //Stopknop
    class stopknopHandler implements ActionListener {
    public void actionPerformed( ActionEvent e ) {
    // shows the current time of clicking stopknop in stopvak
    //telefoonknop
    class telefoonknopHandler implements ActionListener {
    public void actionPerformed( ActionEvent e ) {
    // calculates the time between start and stop
    // and show this in telefoonvak
    //Overigeknop
    class overigeknopHandler implements ActionListener {
    public void actionPerformed( ActionEvent e ) {
    // please leave empty
    }

    Jeez, did you try what I posted?
    Change your startknopHandler to:
    class startknopHandler implements ActionListener {
              public void actionPerformed(ActionEvent e) {
                   Date d = new Date();
                   startvak.setText(d.toString());
         }

  • When using firefox on my MAC desktop the MAC toolbar with time, date, volumn ect. disappears. I want to be able to see it. How can I fix this?

    While in firefox I am able to click on finder and see the missing toolbar. As soon as I go back to firefox it disappears.

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
    *https://support.mozilla.org/kb/how-to-use-full-screen

  • Performance issues with data warehouse loads

    We have performance issues with our data warehouse load ETL process. I have run
    analyze and dbms_stats and checked database environment. What other things can I do to optimize performance? I cannot use statspack since we are running Oracle 8i. Thanks
    Scott

    Hi,
    you should analyze the db after you have loaded the tables.
    Do you use sequences to generate PKs? Do you have a lot of indexex and/or triggers on the tables?
    If yes:
    make sure your sequence caches (alter sequence s cache 10000)
    Drop all unneeded indexes while loading and disable trigger if possible.
    How big is your Redo Log Buffer? When loading a large amount of data it may be an option to enlarge this buffer.
    Do you have more then one DBWR Process? Writing parallel can speed up things when a checkpoint is needed.
    Is it possible using a direct load? Or do you already direct load?
    Dim

  • Graphing Time Data

    I have a report that pulls data from a phone system database.  Each record has the amount of time spent talking, waiting, holding and ringing for each person as numeric fields showing the total number of seconds for a block of calls.  I've been able to create the report and write formulas that convert the seconds for each field into a time field.  But of course it converts it to a specific date which is not what I really want.  If they run the report for a large time period like a month, then there will likely be more than 24 hours in the hour position which the function trucates to a single day.
    As a work-around I've been able to use formulas to calculate the number of hours/minutes/seconds and then create more formulas to calculate the summary and grand totals for each person.  Not the best solution, but it works.  My problem is that now they would like to add a graph to the report showing the average total time spent on the phone for each person.
    Of course I can't graph my calculated time since the formulas result in a String value.  And it doesn't seem to want to let me sum a time field so I can graph a true time value either.  I thought maybe I could convert my finished average time per person into a time value at the group level since that wouldn't be over 24 hours, but that didn't work either.
    Was hoping someone would have some experience in working with time data.  Any suggestions would be helpful.

    Hi Jay,
    Thanks for the response, but I don't think I explained my problem clearly.  Here's how my data is stored (sorry about the lack of columns, so I separated them with "|"):
    Phone Rep ||   Day   ||   Talk Time ||   Hold Time  ||  Total Time
    John Doe   ||    1-1-09 ||  5,000 sec||   1,200 sec   ||  6,200 sec
    John Doe   ||    1-2-09 ||  6,000 sec ||  2,000 sec  ||   8,000 sec
    Total          ||             11,000 sec ||  3,200 sec  ||  14,200 sec
    The read out on the report should read:
    Phone Rep   ||   Total Talk Time  ||   Total Hold Time  ||  Grand Total Time
    John Doe      ||     3:03:20       ||          0:53:20       ||        3:56:40
    Avg/day        ||     1:31:40         ||        0:26:40          ||     1:58:20
    When I convert the time in seconds to a time variable with TimeSerial(hh,mm,ss) it gives me the time in the correct format, but it's listed as simply a time of day.  If the report runs for many days, then the time values could require the hours to go over 24 such as 155:35:26 to reflect a month's worth of calls.  My formulas that calculate the read out as shown above can do this with no problem.  The problem occurs when I try to graph the average at the bottom.  I can't seem to find a way to chart the average time per day.
    I've tried summing the total time in a group and then find a way to format the y axis to show the time format.  I've tried creating a formula to convert the individual record into a time format and then summing that for the graph, but it doesn't give me the option to sum, only to count or other non-numeric options.  I've also tried creating a formula to convert the finished average calculation into a field that can be graphed by itself, but when I insert the chart it doesn't list my formula in the available fields to graph.
    I would even be willing to create the chart in a sub report that somehow pulls in just the total average and then tries to graph that, or use the Microsoft OLE chart object to try and push the data to that and insert the finished chart, but having never done either of these, I was hoping for an easier solution.
    Thanks
    Edited by: Ken Skinner on Jan 25, 2009 8:55 PM
    Edited by: Ken Skinner on Jan 25, 2009 8:59 PM

  • Auto update of time/date in a table cell in pages

    I used to be able to do this in older versions.
    In pages when I have a table cell with time/date I would like to have the current date show up every time I open the document. Not on every date in the document, but just in a set cell in a  table.

    Hi Brian,
    Use the NOW function.
    Menu > Insert > Formula > Edit Formula
    Regards,
    Ian.

Maybe you are looking for

  • Clip Notes + Streaming QuickTime = broken?

    I guess this is more of an AME or Reader issue, but figure that PPro users are the most common users of Clip Notes... I've tried exporting a Clip Notes PDF with streaming QuickTime video from both PPro CS3 + AME, PPro CS4 + AME, and standalone AME CS

  • Inter-Company Eliminations in Hyperion Planning

    Hi, I need to implement Inter-Company eliminations concept in Hyperion Planning. I know HFM has a functionality to implement inter-company eliminations.Please let me know that how this concept can be implemented in Hyperion Planning and what steps I

  • Balance sheet  G/L

    Sir, Ideally G/L which show in  Balance sheet having open item i.e green or red symbol. & profit & loss account having post item i.e green tick mark. but in our one g/l a/c i.e term loan a/c showing post item i.e green tick mark. It

  • SunONE 6.1 admin console problem

    Hi, I've got 6.1 installed on a machine running a fully patched Solaris 8.5/03 install (including patches recommended by SunONE webserver 6.1) on an E250. When we start the admin console we get the following error message in the errors file. CORE3274

  • I cannot open a .docm file. Any suggestions?

    I received a .docm file from an associate. It will not open in Pages or TextEdit. Does anybody have suggestions?