How do I include 'Time' in a time dimension?

I have a requirement where I need to classify the data in the warehouse based on date and time (example : between 10 am to 11 am, 3.00 pm to 6.00 pm like that).
The time dimension created by OWB contains only the date part and when I load the data I use the expression TO_NUMBER(TO_CHAR(input,'YYYYMMDD')) to populate the date.
But I would like to include the time also in the expression like 'YYYYMMDDHHMISS'. But unfortunately the OWB generated time dimension does not have data in this format.
How do I do that? Any pointers?
thanks in advance

You rather create 2 dimensions: Time and TimeOfDay. The first one will have all the date values with it characteristics. The second one will hold the all the possible HH24:MI:SS values with it's characteristics, for example which hour and which part of the day it is (Morning, Afternoon, Evening, Midnight or whether it's lunch time or not), depending on the requirements.
If you try to combine them both into 1 dimension you will get 86400 dimension records every day. Your dimension table will probably will become bigger than the fact tables.

Similar Messages

  • How to create a Time Dimension

    Hi
    This is regarding a new topic which i could not find the answer in this forum.
    Actually i want to create a time dimension to populate my source data which is in date/time format.
    can anyone please reply back reagrding how to create a time dimension in ODI???
    regards
    Gourisankar

    Hi Gourisankar,
    I am not aware of time dimension. But when i searched in metalink i got the below note. I am not sure whether it will help you or not but still a small contribution. :)
    The note as follows,
    To create new time dimensions, run the following SQL instructions :
    * Example to generate a calendar between 1999-01-01 and 2007-12-31 one row per day
    SELECT to_date('1999-01-01','YYYY-MM-DD')+rownum
    FROM DUAL
    CONNECT BY
    ROWNUM<=to_date('2007-12-31','YYYY-MM-DD')-to_date('1999-01-01','YYYY- MM-DD');
    * Example for generating a calendar random number
    SELECT DBMS_RANDOM.VALUE
    FROM DUAL
    CONNECT BY ROWNUM<=1000000;
    May be you can create a VIEW out of this query ,reverse it and use that as a source in your interface.
    Try this and let me know.
    Thanks,
    G
    Edited by: Gurusank on Dec 22, 2008 4:19 PM

  • How to build the time dimension in Essbase with Fiscal Year (July thru Jun)

    Hi,
    In a recent project i have a situation where i need the time dimension to have some thing like this Fiscal Year (July - June) using BSO need to achieve DTS (YTD and QTD) functionality also.
    And also my reports should also be able to drill through and needs comparison years(Prev Year Vs Current Year), months(Prev Year Vs Current Year) and Qtrs(Prev Year Vs Current Year).
    How can i achieve this using BSO?.

    Hi there,
    This forum is for Oracle OLAP. The Essbase forum can be found here:- Essbase
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • How to generate a Time Dimension?

    Hi,
    How can you generate a Time Dimension for both fiscal and calendar year, complete with Month Ago, Quarter Ago, Year Ago, etc Attributes, and then populate with data? Is there any documentation on how to do this?
    Thanks

    like this?
    http://www.ipcdesigns.com/dim_date/index.html

  • OWB 10.2 - How are you handling time dimensions?

    Hi all,
    I am struggling with what should be a simple thing to do. I want to create a time dimension and then have many "roles" or aliases for the time dimensioin WITH UNIQUE COLUMN NAMES across all of the roles.
    When the time dimensions are deployed to Discoverer, I want every one of them to have unique names and the column names within the time dimension have a unique prefix so that report users know which date column is from which table or dimension.
    Here's what I've done and failed at:
    1. Use the time dimension wizard - I can create any number of dimensions and corresponding tables BUT all of them have the same column names and I would have to manually change each and every one of them to get unique names (which may not even be possible with the wizard). Also, because I require ISO weeks, I can't really use the wizard at all.
    2. Manually create a time dimension (that supports ISO weeks) and create multiple "roles" for it:
    Thanks to a bug, I cannot exceed 4 roles without OWB crashing. Even with those 4 roles, when deployed to Discoverer, every attribute within the item folders has the same name. When I drag them to a report, there is no way to tell one from another. Is there some way I could do this without having to manually rename hundreds of columns?
    3. I wrote an elaborate SQLPlus script to copy and prefix dimensions and tables from a base dimension and table. When I then import the Dimension to OWB, the metadata for business identifier and surrogate identifier is not there and any cubes using those dimensions do not work with these attributes missing. I can't find a way to cleanly reverse engineer these into OWB.
    I have a cube with 12 dates - each of which should be a foreign key to a date dimension.
    How can I have all of these be uniquely named with uniquely named columns?
    How can I make it easy for my reporting users to select dates onto their reports?
    I hope I am missing an obvious solution, because so far, I cannot see where Oracle Warehouse Builder supports such a basic data warehousing concept.

    Well, since I'm the only one obsessed with time dimensions I guess, here is my ugly workaround:
    1. I create a base time dimension in OWB which I named 'ATLAS_TIME_DIM'
    2. I run the OMB script below which clones the dimension and table and renames the columns and attributes with a user supplied suffix. The end result is I get a full copy of the time dimension metadata with uniquely named columns.
    You then have to deploy the objects, and with SQLPlus, ensure that the table gets its data copied from your original table. Hope it helps someone until we have better Time dimension support from OWB.
    OMBCONNECT repos/password@SERVERNAME:1521:sidname
    # Prompt for new Dimension name and prefix
    puts -nonewline "Please enter name for new Dimension: "
    gets stdin newDim
    puts -nonewline "Enter Prefix for Dimension table columns: "
    gets stdin dimPrefix
    # Change into ATLAS_DW module in project ATLAS_DW
    OMBCC 'ATLAS_DW'
    OMBCC 'ATLAS_DW'
    # Copy the ATLAS_TIME_DIM to this dimension
    OMBCOPY DIMENSION 'ATLAS_TIME_DIM' TO '$newDim'
    # Set the business name
    OMBALTER DIMENSION '$newDim' \
    SET PROPERTIES (BUSINESS_NAME) VALUES ('$newDim')
    # Unbind the dimension from original table
    OMBALTER DIMENSION '$newDim' \
    DELETE BINDING
    # Bind to new table
    OMBALTER DIMENSION '$newDim' \
    IMPLEMENTED BY SYSTEM STAR
    # Add a prefix to all of the Dimension attributes
    set attrList [OMBRETRIEVE DIMENSION '$newDim' GET DIMENSION_ATTRIBUTES]
    foreach attrName $attrList {
    OMBALTER DIMENSION '$newDim' \
    MODIFY DIMENSION_ATTRIBUTE '$attrName' RENAME TO '$dimPrefix\_$attrName'
    # Add a prefix to all level attributes of the Dimension
    set levelList [OMBRETRIEVE DIMENSION '$newDim' GET LEVELS]
    foreach levelName $levelList {
    set levelAttrList [OMBRETRIEVE DIMENSION '$newDim' \
                            LEVEL '$levelName' GET LEVEL_ATTRIBUTES]
    foreach levelAttr $levelAttrList {
    OMBALTER DIMENSION '$newDim' MODIFY \
    LEVEL_ATTRIBUTE '$levelAttr' OF LEVEL '$levelName' \
    SET PROPERTIES (BUSINESS_NAME) VALUES ('$dimPrefix\_$levelAttr')
    OMBALTER DIMENSION '$newDim' MODIFY \
    LEVEL_ATTRIBUTE '$levelAttr' OF LEVEL '$levelName' \
    RENAME TO '$dimPrefix\_$levelAttr'
    # Add a prefix to all of the table columns except DIMENSION_KEY
    set columnList [OMBRETRIEVE TABLE '$newDim' GET COLUMNS]
    foreach colName $columnList {
    if { $colName == "DIMENSION_KEY" } {
    puts "$colName"
    } else {
    OMBALTER TABLE '$newDim' \
    MODIFY COLUMN '$colName' SET PROPERTIES (BUSINESS_NAME) VALUES ('$dimPrefix\_$colName')
    OMBALTER TABLE '$newDim' \
    MODIFY COLUMN '$colName' RENAME TO '$dimPrefix\_$colName'
    puts "$dimPrefix\_$colName"
    OMBSAVE
    OMBDISCONNECT
    Message was edited by:
    mike_fls

  • How can I modify Time dimension to create a Top member above year members ?

    Hi experts,
    I would like to modify Time dimension to add a Top member above year members.
    I already did a test:
    I added a member in Time dimension which is the parent of all year members. I granted it these property values:
    - ID = TOTAL
    - EVDESCRIPTION = Total
    - LEVEL = TOTAL
    - HLEVEL = 1 (and I added 1 to all the other members)
    - TIMEID = 10000001
    All other properties were left blank for this member.
    I processed the dimension. It went well. But when I tried an evdre in BPC excel it failed.
    Any idea of something missing ?
    I am working on SAP BPC MS 7 SP4
    Thanks for your help
    Ludovic

    Hi Petar,
    Thanks for your answer. No doubt that we could solve the issue using on of the way you suggested.
    However, even though I had the evdre issue right after applying time dimension modifications, it occurs that the evdre issue was not due to time dimension modifications. I tested it better and I can tell that using "total" as a level works.
    Best regards,
    Ludovic

  • How do I include Time Capsule with my new AT&T U-verse network?

    AT&amp;T U-verse network (3 HD TVs, telephone &amp; 18 Mbps Internet) was installed last week and is running great.  It has one AT&amp;T WAP attached to the latest AT&amp;T Motorola NVG510 router about a foot away.  First I want to incorporate a 2007 vintage 2TB TC into the network to have Time Capsule backup and the Airport functionality I had before U-verse sans the horrible speed (3.5 Mbps on a rare good day).  Then I want to expand the network for whole house coverage using a 2005 vintage Airport Extreme attached via Ethernet to the far end of the house.
    Is this old Apple equipment slowing down my network?  All my computing hardware is Apple... 2 MBPs, 2 iPhone 4Ss, 2 iPads 4th generation, HP 309c network printer (USB, BT &amp; WiFi, no e-print), 500GB USB2 HD.  Another 6TB is attached to a new MBP 9.1 via Thunderbolt and FW800.
    I've read several posts similar to this, but they talked about the former AT&amp;T 2-wire router or earlier versions of this Motorola router. I figure anything older than this year--2013-- is mostly obsolete.
    Thank you for your help.

    Put the TC in bridge and plug it into the main router.. that will work fine.
    Extending network by roaming with a 2005 extreme can work.
    Is this very first N wireless model.. if it is the old UFO one.. they are only G wireless.. and although it will not slow your internet if the client is up close.. it will be slow for LAN connection.. 18Mbps is about the max real world transfer speed you will get out of G wireless.
    What is worse is that the Airport utility will not work with non-N wireless.. AE.. so you will also need to use an old computer or windows with 5.6 utility or install by trickery 5.6 onto the Mountain Lion.

  • How to Link two Facts with Different Time Granularity (Year, Quarter) to a Single Time Dimension

    Hello All,
    I have the below scenario where i have Two Facts Fact Quarterly and Fact Yearly but one Time Dimension which has Quarter grain.
    So my question is how do i Establish relationship from Fact Yearly to Time Dimension??
    Ex: 

    Hi naveej,
    According to your description, you want to know how to build the relationship with time dimension and fact tables. Right?
    Based on your screenshot, it's better to have only one fact table for sales and build the relationship with time dimension. To determine quarterly or yearly data only depends on how you slice the time dimension. However, I notice that the Revenue for year
    is different from the aggregated Profit for quarters. If the Revenue and Profit are different measure, you need to have two fact tables. And you should build the relationship (Regular) between TimeDim and FactYearly on YYYY attribute.
    Reference:
    Defining a Fact Relationship
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Modifying Existing Time Dimension

    Hi All,
    Presently I have a Time Dimension and a Fact table which has a FK to this Dimension. The Time Dim has a level upto hourly values.
    Now it's in production and I need to change the Time Dim to take on minutes 'cause some reports need minutes.
    1. So what is the best way to go about this?
    2. Is it better just to add another extra field which has the required date, in the fact table?
    3. How can the existing data be easily ported to the new Time Dim(if it has a minute-level)?
    Thanks,
    Justin.

    I am wondering how you implemented the time dimension which only has a level up to hourly values. Do you mean the time dimension only has 24+1 = 25 rows? Usually the time dimension is separate from the date dimension and its lowest level values are minutes or seconds, depending on the business requirements. Therefore the time dimension should have 24X60 + 1 or 24X60X60 +1 rows.
    The solution is depended on what you want.
    My suggestion is as the follows:
    1.     Create a new time dimension with the desired lowest level values (minutes or seconds).
    2.     Create or modify the foreign key of the fact table to point the new created time dimension.
    3.     Modify the ETL mappings.
    4.     Option 1: If you want the new functionality available for the existing rows in the fact, you have to reload the fact no matter which approach you use.
    Option 2: If you only want the new functionality available for the subsequent refresh load, you can modify the foreign-key values pointing to the old time dimension to the new time dimension, using the rule XX --> XX:00 or XX --> XX:00:00 (where XX is the hour number in the old dimension). In the subsequent refresh load, map the foreign-key values to the actual time.
    Maybe other else can provide better solutions. IF so, please let me know.
    Good luck!

  • Modelling Time Dimension with Fact Table containing Start Date and End Date

    Hi Gurus,
    I have a time dimension with Year till Date. I have a fact table which consists of Start Date, End Date, Person ID, Department ID.
    How do i design Time dimension with fact table the below scenario
    In the dashboard i have start Month and End month as prompts.
    In the report i need to display Count(Person ID) > Start Date and < End Date along the trend.
    For instance, i have selected Jan-2009 as start date and Apr-2009 as End Date, then i need to display Count(Person ID) of Jan-2009, Feb2009, Mar-2009 andApr-2009.
    I Can not connect Time dimension with only Start Date or only with End Date to get the trend along the months.
    Please advice on the issue which i am having.

    Hi,
    Thanks for the response, Infact i tried using Complex join in physical layer. I have considered Time table joined with Fact table, and used >= and took and alias of the Time table and joined fact table using <=. When coming to BMM, i am not knowing how do i design this as if i merge the both the time dimensiona and its alias into single table, values will not be correct and if i make them as seperate columns. i can not show the trend as both are different columns.
    Can you please let know where i am going wrong.
    Thanks

  • Create report with time dimensions

    I want to add the following dimensions in the extend report: calendar, period (Week, Month, Quarter, Year), compare to (Prior Year, Prior Period).
    I have made some researchs and I have consulted oracle metalink but without succes.
    I will be grateful if someone can indicate me where to find a concret example of the creation of time dimensions
    Regards

    Refer OBI Administration Guide, for creating Dimensions (includes Time Dimension Concepts)
    Following link contains the example for implementing Time Dimension:
    http://www.rittmanmead.com/2007/04/30/obi-ee-time-dimensions-and-time-series-calculations/
    Hope it will help you..

  • How to calculate elapsed time(including time and date)?

    Hi all,
    I want to realize a function that can calculate the elapsed time which include time and date.Below is my thought:get the current time and date and store it to a .txt file then using the latest time and date subtract the time and date stored in the .txt file.how can realize it using the simplest way?I'm using LV7.1.

    Hi Idragon,
    you can do it like this.
    Mike
    Attachments:
    DateTime.PNG ‏12 KB

  • How do I limit time on Facetime to include length and times?

    How do I limit time on Facetime to include length and times? ios 5.0.1 ipod touch latest model do not wish to disable whole app.  Thanks

    No such setting exists on the iPod.  For home use, you may be able to configure your router so that wifi is only available for the iPod durng certain times of the day.

  • How to include Time delay in GUI enviroment

    hi all,
    i want to include time delay while drawing the shapes in the Canvas. I tried with Thread.sleep() and also delaying methods by making them to loop for large number of times.... but it affects the repainting of my Frame window like just previously executed snippet of the code gets repeated again and the delay between the shapes drawn cannot be visually seen..
    Can anyone help me????

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DrawingExample extends JPanel implements ActionListener {
        private Timer timer = new Timer(200, this);
        private Rectangle[] rects = new Rectangle[10];
        private int currentUB;
        private boolean desc;
        public DrawingExample() {
            for(int i=0; i<rects.length; ++i)
                rects[i] = new Rectangle(i*15, i*15, 40, 40);
            timer.start();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D) g;
            for(int i=0; i<currentUB; ++i)
                g2.draw(rects);
    public static void main(String[] args) {
    EventQueue.invokeLater(buildApp);
    public void actionPerformed(ActionEvent evt) {
    currentUB += desc ? -1 : +1;
    if (currentUB == -1) {
    desc = false;
    currentUB = 1;
    } else if (currentUB == rects.length+1) {
    desc = true;
    currentUB = rects.length-1;
    repaint();
    static Runnable buildApp = new Runnable() {
    public void run() {
    JComponent comp = new DrawingExample();
    comp.setPreferredSize(new Dimension(300,300));
    JFrame f = new JFrame();
    f.getContentPane().add(comp);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.pack();
    f.setLocationRelativeTo(null);
    f.setVisible(true);

  • OBIEE 11g How to Exclude/Include Multiple columns on BI Report at Run Time

    OBIEE 11g How to Exclude/Include Multiple columns on BI Report at Run Time

    Exclude:
    you Can exclude columns in either Table view or pivot table view by placing those columns in Excluded section but you will notice that it will appear in bi server parsed sql query.
    Not sure you were asking about runtime??
    would you please explain your question!!
    Thanks
    NK
    Edited by: DNK on May 8, 2013 9:48 PM

Maybe you are looking for

  • Can't use Skype and PhotoBooth at the same time?

    I recently updated my Skype to the new version. I used to be able to have my camera on PhotoBooth and Skype working at the same time, however since I made the update I cannot. Depending on which programme I open first, the other will not work. If Sky

  • On button power failure -- causes intermittent start

    This behavior started about one month ago on my 2008 mac pro. It does not seem identical to anything I have seen posted, so I discuss here. Previously the computer has been rock solid for two years. I have replaced the battery on the motherboard, upd

  • I have many epub books in my pc & I want to sync them to my ipad. Can I do so?

    I have many epub books in my pc & I want to sync them to my ipad. Can I do so?

  • Help! images won't render to video

    I am a student in animation and media design. I have previously used photoshop in CS4 to animate and I have just upgraded to creative cloud. I have tried to animate using photoshop 6 and I can't get my drawings to render to video. Another student tho

  • Wip transaction distribution

    I am on WIP \ WIP Value Summary \ wip transaction distribution screen on oracle ebs, how to find the tables where the data is coming from.