HH:MM:SS Time format to show in Graphs - OBIEE 11g (11.1.1.5)

Hi,
I have got a requirement to show time format in graphs. I am converting seconds to HH:MM:SS format using the formula that I found in one of the blogs.
http://123obi.com/2012/06/obiee-converting-seconds-to-minuteshoursdays/
Is there better way to conver seconds to HH:MM:SS format?
Note: I don't want to show the days because in our requirement it would never reach to it.
How to show the values like 1:11:34, 0:23:54, etc... in the graph?
Thanks in advance.

Hi
We have implement two ways.
Method 1:
Open your repor--> click your date column --> use the below syntax.
SUBSTRING(cast("- D_CALENDAR_DATES".DATE_TIME as char) FROM 11FOR 9)
method 2
Open your report --> Goto your column properties--> data format--> Override Default Data Format -->select custom--> give your format like (HH:MM:SS).
Hope this help's
Thanks
Satya

Similar Messages

  • Custom date format that can use in Obiee 11g

    Hi,
    I'm new here,
    What are the date format could be use in OBIEE 11g?
    can we custom like this: DD-MM-YYYY?is there any case sensitive like dd-MM-yyyy?
    Please help
    Joe
    Edited by: JoeSSI on Mar 1, 2012 8:32 PM

    Hi,
    bot should work.refer the below
    go to u r required columns -->right click and properties then select data format tab --> check it Override Default Data Format > select it custom option put u r required both option work.
    if u kept it
    DD-MM-YYYY ===> 01-03-2012 format u ill get
    or
    dd-MM-yyyy
    Thanks
    Deva

  • Time format is showing wrong at query level

    hi,
    i have a problem at query level
    i have two time fields which are key figures
    i have calculated key figure which has a formula
    cal kf =  time (tim1- tim2)
    data at the dso level
    flightno              time1                 time2          
      f001                11:12:24     10:12:24
      f002                11:12:24     10:12:24
      f003                10:12:24     10:12:12
      f004                11:12:24     11:12:12
    query output
    flightno              time1                 time2               calkf
      f001                11:12:24     10:12:24           19:00:00
      f002                11:12:24     10:12:24           19:00:00
      f003                10:12:24     10:12:12           18:00:12
      f004                11:12:24     11:12:12           18:00:12
    calculated key figure is showing me wrong values by adding up 18 hours
    so i added a key figure at dso level and calculated using formula in transformations
    it is showing me correct value at dso level but query level it is showing me wrong values
    how to solve this
    did any one face this problem before
    any ideas
    i will assign points
    Message was edited by:
            venkat s

    Venkat,
    Try out this.
    Since the 2 time fields are key figures,create the calculated key figure for each of them using the Time() data function.
    eg: for tim1 --> create CKF using time data function as TIME(tim1)
    eg: fro tim2 --> create CKF using time data function as TIME(tim2)
    As a next step,now create a CKG for calculating the diff bewteen 2 time CKG.
    eg : TIME(TIME(tim1)-TIME(tim2))
    Hope this helps.
    Thanks & Regards,
    Suchitra.V

  • My new macbook pro is giving me hardtime. even apple team is not being to solve it. they replace the motherboard first it didn't work. second time they formatted the computer and that also didn't work. every time my mac showing different problems.

    my new macbook pro is giving me hardtime. even apple team is not being to solve it. they replace the motherboard first it didn't work. second time they formatted the computer and that also didn't work. every time my mac showing different problems.
    At first my computer had issues. Once it go to sleep it will not back again. I dropped my laptop at apple store to fix it. After 10  days they returned my laptop saying they were no able to fix the problem so they replaced motherboard aiming if that might help. Acttually that didn't help.I had same issue again. I visited apple store again. This time they said they could fix, if I will allow them to format the harddrive. I said ok. They formatted it. It was working fine for few daysAfter few days compter is taking.even more than 15 min to shutdown. Now computer has another problem. It is being hang frequently like every 20'to.30 min.
    I don't know what to do? I still have one month left on first year warranty. I have requested couple times to apple associates either to fix or replace or refund. They are showing me rude behavior. They are not understanding my situation. I am a student. I need to do lot of home work. Since last three month my mac book and apple associates giving me hard time. Any suggestions are welcome.

    Contact Apple Customer Care - not Apple Care - Customer Support. Have your receipts handy and/or case numbers. Be patient, be calm, and tell your story just as you have here. I get the sense you are not in the US and don't have access to an Apple Store but are going to an independent shop. This makes using Customer Support all the more important. If phoning isn't viable, use registered mail.
    Since time is running short, be prepared to purchase AppleCare to exennd your warranty 2 more years. Yes, you shouldn't have to do this, but it gives you added protection and more opportunities over the next 2 years to claim a replacement computer if you don't get one immediately. After dealing with a similar unhappy situation with a Mac in the late 1990s I finally got a replacement computer and reimbursed for the AppleCare policy.

  • Show time in current time format

    Hi!
    jdk1.3
    windows2000
    I want to show time in java in current time format
    e.g if I set in Windows (Regional Settings->Time) time format to 12 h format , then I want java show me time in this format
    if I set in Windows time to 24 h. format, then I want java show me time in 24 hours format.
    What I can do?
    Thank you.

    Hi!
    jdk1.3
    windows2000
    I want to show time in java in current time format
    e.g if I set in Windows (Regional Settings->Time) time
    format to 12 h format , then I want java show me time
    in this format
    if I set in Windows time to 24 h. format, then I want
    java show me time in 24 hours format.
    What I can do?
    Thank you.haha just did this a few hours ago hey this should get you started
    http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html
    anyway it will be much easier and faster if u just type 'date/time' in forum search lots of similar questions this type

  • BO 3.1 WEBI Time format variable not showing correctly

    Hi,
    I apologise in advance. I know this topic has been covered many times in previous forums but I have been through each and I am still encountering an issue.
    My requirement is to convert x number of seconds into a HH:MM:SS time format for both positive and negative numbers in WEBI.
    I found a formula on a forum here that suggest using the following code:
    =FormatNumber(Floor([Column_Name]/3600) ;"0") + ":" + FormatNumber(Floor(Mod([Column_Name];3600)/60);"00") + ":" + FormatNumber(Mod(Mod([Column_Name] ;3600) ;60) ;"00")
    I have used this code and when I give the code an input of -720 seconds it outputs in the format -1:-12:00.
    It is quite frustrating I cannot get this to the correct format, can anyone suggest what is wrong with this formula?
    I am using WEBI for creating the formula on BO 3.1.
    Kind Regards,,
    John

    Hi,
    Let me try.
    This is your formula.
    =FormatNumber(Floor([Column_Name]/3600) ;"0") + ":" + FormatNumber(Floor(Mod([Column_Name];3600)/60);"00") + ":" + FormatNumber(Mod(Mod([Column_Name] ;3600) ;60) ;"00")
    Issue with this formula is only when you have used negative seconds.I have break the formula =FormatNumber(Floor([Column_Name]/3600) ;"0")  and found this is giving the wrong result.If you divide -720/3600 you will get 0.2 and nearest integer is 0 but in this case 1 is coming.
    Same time it is working properly with 720 and  the result  will be 0.
    In this case i have  created one variable  which  convert the negative values to positive.If you enter -720 then it will convert 720 and you will get the 0 from first part.
    =If([Column_Name]<0) Then ([Column_Name]*-1) Else [Column_Name]
    Second part is if you entered the negative values then output should be in the negative.but with above condition you will get the positive values.
    Again i have created the formula If([Column_Name]<>[Column]) Then "- which compare the object values and see if I have changed anything.
    Like i have entered -720 so first variable will convert to 720 then in next formula it will check -720 is not equal to 720 (Which is not) then add - (minus sign) and same calculation else part if is equal then use the same formula which you have put.
    Hope this is clear to you.
    Regards,
    Amit

  • During export from Discover to Excel, Time Format changes to Number Format

    Hi
    I have a seconds column which is of number datatype. But in my report, I am converting the number in *0HH:MI:SS* format. For example, I have *4952534 seconds*. So my report is showing *1375:42:14* which is a Time Format. It looks good when I view the data in Discoverer Viewer or Plus. But when I try to export the data to Excel, the time format gets converted to *4952534 seconds*, which is creating problems. So can you suggest on how can I preserve the formatting during export to excel from discoverer.
    Thanks
    Sachin

    Hi,
    Excel will not implement the 0HH:MI:SS data format, it just gets the field as a number. You will have to format the field into text using the calculation from my previous post.
    Rod West

  • Time Format using text variable with replacement path

    Hi Friends,
                                 I've used "Text variable with replacement path" to make the column heading dynamic by replacing the values referring from "0calday"...
    everything is working fine, but here it is displaying the time format like
    YYYYMMDD (20030101), i want it to be displayed DDMMYYYY (01012003) in the column heading... how to make it possible?
    pls waiting for ur inputs, it's an urgent...
    Regards,
    Pattnaik

    Hi Satyakam,
    In the text variable properties make sure that in the replacment path you have chosen "Text" to appear date as per user setting . Other wise as in your case it must be set to "Key" which always shows in the format YYYYMMDD.
    Hope that helps.
    Regards
    Mr Kapadia

  • Help needed in Time format

    Hi
    I am using oracle 9i . Is there any option to change the time format ie. for eg: when iam inserting values (in the fields declared as timestamp) as '22-06-2005' it is showing errors but when changed to '22-jun-2005'it is working. In my case i want the values to be inserted in '22-06-2005' format.
    Also is it posssible to change dd-mm-yyyy format to yyyy-mm-dd.
    Thanking you in advance
    Dinny

    Hi
    When i create a having 'ALTER SESSION SET NLS_TIMESTAMP_FORMAT = ''YYYY.MM.DD HH24:MI:SS''' the time format is not getting intialized but when i run the stmt ALTER SESSION SET NLS_TIMESTAMP_FORMAT = 'yyyy-mm-dd'; the time format is getting initialized.
    SQL> CREATE OR REPLACE PROCEDURE set_date_format
    2 AS
    3 BEGIN
    4 Execute Immediate 'ALTER SESSION SET NLS_TIMESTAMP_FORMAT = ''YYYY.MM.DD HH24:MI:SS''';
    5 END set_date_format;
    6 /
    Procedure created.
    SQL> insert into sili values('2003-05-23');
    insert into sili values('2003-05-23')
    ERROR at line 1:
    ORA-01843: not a valid month
    SQL> insert into sili values('2003-jan-23');
    insert into sili values('2003-jan-23')
    ERROR at line 1:
    ORA-01843: not a valid month
    SQL> insert into sili values('23-jan-2005');
    1 row created.
    SQL> ALTER SESSION SET NLS_TIMESTAMP_FORMAT = 'yyyy-mm-dd';
    Session altered.
    SQL> insert into sili values('2003-05-23');
    1 row created.
    SQL> insert into sili values('2003-jan-23');
    1 row created.
    Thanks & regards
    Dinny

  • Time format

    I was recently given a MacBook Air 11" for my birthday (lucky me!) and chose English as the system language. I chose the date and time settings to follow the European system (I live in France) i.e. date: 28/9/2010 and time: 20:40, but Mail displays the time as 8:40pm, which I find totally annoying.
    I know it probably has to do with the language choice as my MacBook Pro, which has French as its system language, displays the time the European way - logical, no?
    Anyway, is there a way of changing this format?
    Thanks for any help.

    Hello starfishy,
    I hope this response comes not too late:
    Go to System Preferences > Language & Text > Formats. There you will see three sections entitled Dates, Times and Numbers. Press Customize in the Times section, and you will see the predefined formats for all time variants used throughout the system -- short, medium, long and full. Change all these time formats; each item has a drop-down list showing you the options. I changed the hour to 01-24, and completely deleted the AM/PM. When you restart Mail, it should now display 20:40 as you wanted.
    A screenshot is here at http://www.nonformality.org/images/twentyfour.png. Hope it helps.

  • CONTACT NAMES NOT DISPLAYING & TIME FORMAT CHANGING AFTER SYNC

    i live in kuwait and i was just gifted an officially unlocked 3g iphone from new zealand. i upgraded to 2.1. i have 2 problems
    1. i have synced my contacts from address book. the format that it is stored in is +965XXXXXX. 965 is the country code for kuwait and all numbers in kuwait are of 7 digits. there is no area code as this is a small country. when someone calls me their name does not appear. only the number appears
    2. i have set the time format on the iphone to the 24 hour format but every time i sync with my macbook the time format changes to 12 hour format.

    Follow this procedure to get your contacts back (I assume they are on your Mac/PC):
    1. Go to Settings, then Mail, Contacts, Calendars
    2. Select your account which has the contacts you wish to sync
    3. Turn syncing for Contacts to "Off". This will bring up a box telling you your iPhone is turning off Contacts. My iPhone actually hung at this stage, so after several minutes, I performed a hard restart (holding down Home and power buttons for 5 sec.)
    4. Exit from Settings
    5. Go to Settings, then Mail, Contacts, Calendars
    6. Select your account which has the contacts you wish to sync
    7. Turn syncing for Contacts to "On". This should restore your contacts
    8. Go to Contacts to verify. They initially may not appear or just show up as numbers for a second or two, but then your contacts should appear.

  • Wrong DATE-TIME FORMAT among REPORTS NOTIFICATION EMAILs

    Dear all,
    I create a report request with url
    https://ocixxxx2.oci.xxcl.net/reports/rwservlet?>destype=printer&desformat=PDF&server=rep_xxxxx2_orahome&userid=ixxxxxx/xxxxxxx@saas&notifysuccess=IASL&notifyfailure=IASL&report=R1000R13.rdf&jobname=R1000R13&desname=HPLaserJet4150PCL6
    Email notification was generated with wrong date format .
    It's expected to be in UK English but it shows encoded text , may be random. I route it to another email servers such that find the date time is in chinese characters . That caused problem on original email server in which was not supported
    Could any expert please advice ?
    Warmly
    Edited by: MosielleKwan on 2010年2月26日 下午11:31

    It's indeed an expected behavior.
    When a Reports Server starts on a Windows machine, it likely detect the Windows Regional Settings in order to use it when needed later. This let the Reports Server communicate in the same format/way the Server machine uses. For example, if the System / Application Server administrator prefers to use the Windows (on which the Application Server is installed) with Chinese Regional Options, it is normal that the Reports Server send the Notification Email with a "Date/Time" Format matches the Windows.
    Thence, you like to get English/Western Date and Time format in the Reports Server Notification Email, it is required to change the Windows Regional Settings from Chinese to English and restart the Reports Server and restart the corresponding compoent. This will let the Reports Server detect the change and will send the Notification Email(s) then with English/Western Date and Time formats.
    If English/Western Date and Time format in the Reports Server Notification Email but still have the Windows Regional Settings set to Chinese, you can implement it
    that :-
    1. Change the Windows Regional Settings from Chinese to English.
    2. Restart the Reports Server and restart others.
    3. Change the Windows Regional Settings back from English to Chinese. .
    With these 3 steps, the Reports Server will keep sending the Notification Emails with English/Western Date and Time format, and maintain original settings.

  • IPod Classic Time format

    I Have ipod classic 80 gb in time format i've chose 24 Hour format and it shows the time in 24 Hour format but when the screen turns off when it shows for ex the play sign and the hours it shows the hours in 12 hour format.
    I hope you can understand and let me know how to fi it

    It is not a problem in itself. It just speaks a lot about Apple's firmware quaility considering how old this issue is, how often it is mentioned, how obvious and how easily fixable it is.

  • Time format conversion problem

    Hi there,
    I am tryng to get excel data thats in time format lets say : 03:30
    i have key transform it into key figure in time format, when i load data and check the data in cube, it comes ina a format that is like 03::3:0
    and also when i try to report that it shows 00:00 in reports.
    thats why i  can not get time differences.
    Thanks

    Hello john,
    The sugestions to change the format in excel are correct but if u dont want to change it in that way, u can write an abap routine
    in the transformation for add the time seconds.
    Data : time_excel TYPE char LENGTH 8.
    *rename time1with the name of ur field
    CONCATENATE source_fields-time1 ':00' into time_excel.
    move time_excel to result.
    Hope this helps.

  • Change of Time Format

    hi
    I need to change the time format from 17:00 Hrs to 5:00 PM. Right now the form is showing time like 17:00 HRS. it should be 5 PM.
    your help will be extremely appreciated.
    Regards
    Waseem

    Hi Waseem,
    then try the code Ferry posted.. in ur print program... if u cant access print program then u need to write a PERFORM routine in script.
    /: PERFORM TEST IN PROGRAM Z_PROG
    /: USING &TIME&
    /: CHANGING &TIME_PM&
    /: ENDPERFORM
    in ZTEST report program for routine.....
    FORM test TABLES in_par STRUCTURE itcsy
    out_par STRUCTURE itcsy.
      READ TABLE in_par WITH KEY 'TIME'.
      CHECK sy-subrc = 0.
      l_time = in_par-value.
    CALL FUNCTION 'HRVE_CONVERT_TIME'
      EXPORTING
        type_time             = 'A'
        input_time            = l_time
       INPUT_AM_PM           = 'AM'
    IMPORTING
       OUTPUT_TIME           = o_time
       OUTPUT_AM_PM          = o_stamp
    EXCEPTIONS
      PARAMETER_ERROR       = 1
      OTHERS                = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      READ TABLE out_par WITH KEY 'TIME_PM'.
      CHECK sy-subrc = 0.
      out_par-value = o_time.
      MODIFY out_par INDEX sy-tabix.
    ENDFORM.                    "TEST
    Regards
    SAB

Maybe you are looking for