Creating Time Dimension

Hi
I have a fact table which has a time data stored in two columns, month_id,year_id.
My fact table looks like this
Sales,Month_ID,Year_ID
How can I model a level based dimension for time for this sort of table ?

You can map the time dimension to a view on top of your fact table as long as the fact is sufficiently dense in time (e.g. there are no missing months). The view would add end date and time span info as appropriate. Alternatively you can define a view that generates dates. The following thread shows the latter approach
populating a date dimension
You can adapt the view in it to derive time info from your fact if you like, but the standalone view is probably easier.

Similar Messages

  • Create time dimension table in repository without data warehouse

    Hi,
    I want to implement only BI repository solution in my customer (not datawarehousing). Is it possible to transform the data by repository tools, so that the times columns in fact tables are categorized by the "time dimension" table?
    To be more explanatory:
    The "Sales" table has the "time of sale" column. It contains the timestamp when the sale was performed. I have imported this table in "physical layer" of the repository. Now I want to create a new "time dimension" table, something like:
    CREATE TABLE dimension_time (
    Day_Key INT NOT NULL PRIMARY KEY,
    Day_Timestamp DATETIME NOT NULL,
    Day_Name NVARCHAR(32) NOT NULL,
    Day_Text NVARCHAR(32) NOT NULL,
    INSERT INTO dimension_time VALUES (20110101, {d '2011-01-01'}, '1/1', 'January 1', 'Saturday', 0, 6, 1, 1, 185, 1, 201052, 'W52', 'Week 52', 52, 201101, '01', 'January', 1, 7, 1004, 'Winter', 'Winter', 20111, 'Q1', '1st Quarter', 1, 20103, 'Q3', '3rd Quarter', 3, 20111, 'S1', '1st Semester', 1, 20102, 'S2', '2nd Semester', 2, 2011, '2011', '2011', 2010, '10/11', '2010/2011', 0);
    INSERT INTO dimension_time VALUES (20110102, {d '2011-01-02'}, '2/1', 'January 2', 'Sunday', 0, 7, 2, 2, 186, 2, 201052, 'W52', 'Week 52', 52, 201101, '01', 'January', 1, 7, 1004, 'Winter', 'Winter', 20111, 'Q1', '1st Quarter', 1, 20103, 'Q3', '3rd Quarter', 3, 20111, 'S1', '1st Semester', 1, 20102, 'S2', '2nd Semester', 2, 2011, '2011', '2011', 2010, '10/11', '2010/2011', 0);
    and after to add a new column in "sales" fact table for "time dimension ID" and through the repository populate this column based on the "time of sale" column and the corresponding "time dimension ID".
    I know that the ETL process might perform it, but I do not want to go for Data Warehousing (it is not real - time, needs more resources, etc).
    Is it possible to perform such action only on repository?
    Thank you.

    Hi,
    I can do it, but this would be usefull only to create "time dimension" table. But also the "sales" fact table needs to be altered (thus, the "time" column will not contain the value of the time, but the ID of the corresponding time in the "time dimension" table).
    I know that on DW this procedure is done automatically by the ETL process.
    My question is that does the repository has any tools similar to this?
    Thank you.

  • Creating Time Dimension from date columns in fact tables.

    I remember watching a demo from a BI Tool a couple years ago, wich I swear was OBIEE, and the presentator stated it was possible to create a Time Dimension in the admin tool, based on a date column in other table.
    Can you guys tell me if there's such functionality in OBIEE?
    If so, how could I achieve that?!
    Thanks in advance!
    Marcos

    hi,
    You are trying to make Fact table as Dim table ???
    Fact table has some dim columns??
    We can do this by making a fact table as dim table ,create a dim hierarchy on that table
    Year level :Extract(year from fact_date_column)
    Month and year  level:CAST (Extract(month from fact_date_column) As CHAR(5) ) || CAST (Extract(yearfrom fact_date_column) As CHAR(5) )
    Like this
    But,be careful while doing this make sure that all joins and content levels are good
    As per my knowledge this is not a good way,Experts can add some words lets see!!!!!! :-)
    thanks,
    saichand.v

  • Creating Time dimension in BW data model. - like seen in logical data model

    Hello all,
    I have been struggling with this thing and I am looking for some help from anyone on this forum.
    We are trying to create a logical data model of our bw system. We are going live next month with Student module for universities. We have multiple Infocubes and DSO and since there is so much crossing over in between them most of the reporting is done on infosets.
    One of the thing we were thinking; is it possible to create something like a common time dimension table for every infoprovider. Basically when we are providing the reports to the end user can we give them a drop down menu which gives a time frame for reporting rather than selecting.
    Example: Like can we create something which looks in the drop down like current month data, last months data, three months ago, four months ago, five months ago, one year ago, two years ago. Can we make like these data slices in our cube and deliver it to the end user?
    We have in our cube a few date infoobjects, like receipt date, decision date, cancellation date and like wise.
    Please let me know if any one has done any similar thing, it will be very helpful.
    Thank you so much in advance.

    if you add your common time dimension to your data model, first identify for each infoprovider the time against which 'current month' and other frames should be applied and map them to your dimension.
    just a question... are you not using time dimension in cubes ? ideally this should be your time dimension llinking all.
    when you use time dimension which uses 'current month' , 'current year' , you will have to address their historisation as well. (because current month now will not be so current after 2 months).
    so in data load procedure every day these values need to change (meaning drop and reload).
    and routines to populate these values based on reporting date.
    Edited by: hemant vyas on May 6, 2009 1:56 PM

  • OWB 904 - problems creating time dimension

    I'm using Oracle9iR2 DB and OWB 904. I have not much experience with OWB 904 yet and problems with creating the time dimension.
    I tried to figure out the example which comes with OWB 904 and did everything as it is written in the readme.txt file:
    1. loaded the time table functions owb_time_seq.sql and owb_time.sql in my runtime user schema
    2. imported the owb_bp_time.mdl file into my design repository, which created the demo project 'OWB_BP'
    The problems which I have with this demo are:
    1.) I get warnings when I validate the mappings (TF_TIME_MAP):
    VLD-1002: Mapping object T_TIME is not bound to a repository object.
    VLD-1004: Column length of L_DAY_NAME is longer than the target column length.
    VLD-1004: Column length of L_MONTH_NAME is longer than the target column length.
    VLD-1004: Column length of L_QUARTER_NAME is longer than the target column length.
    VLD-1004: Column length of L_YEAR_NAME is longer than the target column length.
    VLD-3260: No Output Attribute name is specified. In this case, the attribute’s physical name will be used.
    VLD-1123: Missing location information for Module WAREHOUSE.
    VLD-1115: Commit frequency is defaulted to Bulk Size.
    I know how to solve the errors VLD-1002, VLD-1004, VLD-1123 and VLD-1115 but I have no idea how I should solve VLD-3260 and VLD-1002, because reconcile outbound is not possible for the T_TIME dimension.
    2.) When I try to import the table function
    TIMEDATA (IN VARCHAR2, IN NUMBER) return TABLE
    from the runtime user schema into my design repository I get the error message: Argument Data type is not supported.
    3.) I cant deploy the mapping TF_TIME_MAP.
    Is it possible to use the table function from the demo to create a time dimension and to import it into my own project? My aim is to create a bean compliant time dimension and I want to know what I have to bear in mind to accomplish that. The OWB904UsersGuide didn't give me enough information, therefore I'm asking if you can help me out.
    Thanks in advance,
    Dirk

    Dirk,
    The way you should approach the time dimension is following:
    - Run the SQL scripts into your target schema (you already did).
    - Import the MDL file (you already did).
    - Copy and paste the times dimension into your own project to be able to use it.
    - Copy and paste the mapping you want to use to your own project.
    - If necessary, modify the times dimension according to your needs; change the mapping accordingly.
    - Open the mapping, do a right mouse click on the time dimension and select 'Reconcile inbound'. Select matching strategy to match by bound name.
    We do not currently support the table function as an object in the metadata repository. I.e. if it exists at runtime then you can call it (as the time dimension load mappings do).
    With the objects in the target schema you should be able to deploy the mapping.
    Thanks,
    Mark.

  • Error in creating time dimension

    Hi,
    I created a simple time dimension with two levels: year and month, and each level has one element that serves as chronological key. This is the error I got when checking global consistency:
    "The physical table 'my time table' , which is part of a time dimension table, is also used in the logical table 'my time table', which is not part of any dimension".
    What does it exactly mean?
    Thanks for any assistance.

    Hi ,
    Please provide details about how you are bringing in the table into presentation layer , its seems like the table is taken as a fact table by the tool , its very important how you are defining the relationship in the logical diagram.Some times its easier to bring a dummy table along in the physical layer and make a sensible logical diagram, since you are trying to create a time dimension you want it to have drillability , so you have to create a hierarchy on the same table.The key here is to make sure the tool understands what you really want ,sometimes you have to work around since the logical diagram is the only way the tool makes sense of the tables brought in.
    Thank you,
    Mohammad Farhan Alam

  • Odi-Creating time Dimension

    hi,
    i want to create a time dimension using odi.
    How do i create the below table.
    CREATE TABLE Dim_Time(
    Timekey INT IDENTITY(1,1),
    Day CHAR(2),
    Month VARCHAR(9),
    Quarter CHAR(1),
    Year CHAR(4),
    Week CHAR(2),
    FullDate DATETIME,
    Thank You.

    You can use an Excel file as a source that contains 1 columns with 1 date by row
    then you map the other columns thanks to date function in ODI

  • Ora-00942 when creating time dimension

    hi All,
    I am new to data warehouse, i have created a date dimension " date_dim " in a target location, it has created a corresponding mapping "date_dim_map" in mappings section.
    But when i try to deploy the dimension i get error ora-00942 table or view does not exist.
    I get the same error when i try to deploy the corresponding map created by this dimension.
    any ideas what the problem could be.
    regards

    oops got it had to deploy the corresponding table first.\

  • Date and Time dimensions

    After reading the following article, I have decided to use SSAS dimension wizard for generating our Date dimension, which creates a DATETIME PK.
    http://www.made2mentor.com/2011/05/date-vs-integer-datatypes-as-primary-key-for-date-dimensions/ 
    I have also created a separate Time dimension as granularity of an hour is required.
    The Time dimension is very simple and only contains a surrogate key (INTEGER) and actual time in hours (VARCHAR).
    DimTime(TimeKey, TimeInHours)
    Our Fact table will now have a link to both the Date and Time dimension using the PK's.
    Our analysis is required by hour, day, week, month and year.
    My query is; Will this current structure cause any problems when creating MDX scripts to analyse our data (i.e. drilldown and rollup queries) Hour - Day - Week - Month - Year

    Hi Darren,
    According to your description, there a day and hour granularity in your fact table, so you want to a hierarchy like Hour - Day - Week - Month - Year, right?
    In your scenario, you created a time table that only contains a surrogate key (INTEGER) and actual time in hours (VARCHAR). We cannot create a Hour - Day - Week - Month - Year hierarchy without ant relationship between date table and time table. As per my understanding,
    you need create a foreigner key in time table, and join those table in the data source view, then you can create such a hierarchy. Here are some links about create time dimension, please see:
    http://www.ssas-info.com/analysis-services-articles/59-time-dimension/1224-date-and-time-dimensions-template
    http://www.codeproject.com/Articles/25852/Creating-Time-Dimension-in-Microsoft-Analysis-Serv
    Regards,
    Charlie Liao
    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!

  • Data warehouse, time dimension

    Dear folks,
    My boss asked me an interesting question, but I couldn't answer, because I'm not an Oracle expert, I'd rather describe myself as Cognos developoer.
    We have a ROLAP data warehouse, and there is a time dimension table, the primary key column has type number. He asked me, why is it worth having a number primary key, and not having the date itself as primary key, because Oracle converts dates to numbers too... So what do you think, what's the difference, wich is the better option?
    Thanks you in advance, and sorry for my bad English.

    Hi,
    I can do it, but this would be usefull only to create "time dimension" table. But also the "sales" fact table needs to be altered (thus, the "time" column will not contain the value of the time, but the ID of the corresponding time in the "time dimension" table).
    I know that on DW this procedure is done automatically by the ETL process.
    My question is that does the repository has any tools similar to this?
    Thank you.

  • Unable to create time series ago function

    Hello guys
    I am running into a problem about time series function, ago function
    I have a simple schema, fact <---->Time dimension
    I have created time dimension hierarchy where month is the lowest level, I have also made it "time dimension" and month is the "chronogical key"..
    When applying ago function, I am putting my measure from the fact table, level as "month" from time dimension table, and 1 meaning 1 month ago, when I complile it, I get the following error:
    [nQSError: 27009] Unresolved identifier: "FTTNBILLSUM"."FTTNOBIEEBILLTIME"."Month".
    Could anybody help me out as what the system doesn't like about this column?
    Thanks

    Thanks Maden
    I did the correction and now it's giving a different error: [nQSError: 22038] Function AGO requires at least one measure attribute in its first argument.
    My code is:
    Ago("FTTNBILLSUM"."F_Bill_Sum"."ATM_UNITS_Sum" , "FTTNBILLSUM"."D_Time"."Month" , 1)
    I have time hierarchy that names: D_Time with Month at the lowest level with Chrono keys, there is no level above it except grand total level, so only 2 level hierachy
    I have a fact table that is F_Bill_Sum, which is join to D_Time... I made the D_time both the name of table and hierarchy
    Please let me know what this error is coming from
    Thanks

  • Month Sort Order Problem in Time Dimension(Essbase with Obiee)?

    Hi All,
    I am facing issue with month order in answers.
    First I created BSO cube using Essbase Studio. When i exposed cube in answers, months were sorted in alphabetical order. So i used RANK function with evaluate to arrange month members in proper order. But if i use RANK function it pulls all missing records and it is effecting performance.
    Then i created Time dimension(dimension loading) in essbase from FLAT file,initially it was coming in proper order. But after some time again it sorted in alphabetical order!!!
    I have seen in internate few people saying they didn't face this problem. I
    Please advice...
    Essbase: 11.1.1.3
    OBIEE: 10.1.3.4.1
    RS

    Hi user10300020,
    That's a fairly common problem with months that happens regardless of database source.
    In the logical layer of OBIEE you can specify the sort order on the month name column. Just double click on the month name column and look for the option to set sort order based on a different column. I typically sort the month name based on the month number.
    Give that a shot and tell me if it works.
    -Joe

  • Oracle 9i OLAP Time Dimension

    I have got a problem with my cube in Oracle 9i R2 OLAP Services.
    I would like to create time dimension with hour level. But, time type have
    only day level.How I can create dimension with hour level ?
    user cwm2 or OWB

    Hi Jiaxu,
    Are u a Chinese?
    I find that you are learning OracleR2 OLAP.
    I just take a project about OracleR2 OLAP.
    Could we talk about the technology?
    My mail is [email protected]
    Best Regards
    Chen Qizhuan

  • Time dimension (Using Wizard)

    Hi
    i want to create Time dimension using simple wizard(not through time wizard)
    i have following attributes in it
    Year( year ID,year Discription)
    Quarter(Quarter ID,Quarter Discription)
    Month ( Month ID,Month Discription)
    Week ( week ID,week Discription)
    DAY ( Day ID,Day Discription)
    Hours ( hours ID,hours Discription)
    i complete time dimension with simple wizard but it create sequence and table
    so what is mapping for it kindly give me guide in detail
    thnx in advance

    Hi,
    you may create your custom time dimension using the simple wizard.
    To fill it with values, create another time dimension with the time dimension wizard. Fill it using the generated mapping.
    Then write your own mapping to fill your time dimensions with the values from the generated one.
    This way is easier than to write some custom logic to fill your custom time dimension.
    Regards,
    Carsten.

Maybe you are looking for

  • How do I find my username on my eprint printer to log into it?

    I am trying to set up an eprint account for a Laserjet P1606dn I put a passord on the printer. I know the password, but it prompts me for a username. I don't even remember defining a username, and have tried everything I can think of, without success

  • Can I mask out a stray hair strand in video clips???

    I have several clips with a person with one small but noticeable stray hair extending below the side of their glasses over their cheekbone.  Is there a way to have the skin tone intelligently mask out/replace that part of the hair over the facial are

  • How to write an outer join

    Hi, Let's suppose I have to write an outer join like this: select ... from table_1 a, table_2 b where a.field1 = b.field1 and a.field2 >= b.field2 but I know that for some values there might not to be a matching between the two tables. Should I rewti

  • Display wpc page containing articles created using forms builder

    Hi everybody, I need to create a wpc site with different pages. Each page will need to contain different categories of articles. These articles will be created using the xml forms builder and for each category there is a specific KM folder (the artic

  • How do I stop the ability for my ipad and iPhone to sync

    my ipad shows all my text messages, Facebook notifications, email etc... from my iPhone. How do I get that to stop?