How to time dimension
How do you link a time dimension to the fact table?
If the time dimension has a sequence as the PK then
the following columns:
year
month
quarter
day
time
etc..
How is the fact table connected to the time dimension if the fact table has the
primary key as a FK in the fact table?
-Jim
Hi Ragnar
Because a date is in fact stored as a number you don't need a surrogate key for your time dimension. You can make the primary key the date itself. Then you just join from the fact to the time dimension on the date.
Oh yes, you would need to populate the time dimension before loading the fact table. But then this is true of all star schemas. You must populate the dimensions before you populate the facts.
However, in the case of time, because it never changes over time (pardon the pun) you could load years of dates way out into the future. Then you would never have to worry about it for a while.
I have customers who are using E-Business Suite where the time dimension is fed from GL_PERIODS and BOM_CALENDAR_DATES. Because the periods are entered once per year in most cases then they only need to run the load once per year. Matrialized vieww of time work well too.
Hope this helps
Regards
Michael
Similar Messages
-
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?
Thankslike this?
http://www.ipcdesigns.com/dim_date/index.html -
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 advanceYou 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. -
How to know on which time dimension level we are ?
Hello,
I would like to know is there a variable or a mean to know dynamically on which time dimension level we are in order to use that in a CASE WHEN clause ?
By using a sort of aggregation tables in which one of the column contains the name of the level, I could know on which level I am but I can't use that for drill down. What I mean :
Tab1 :
'Year' as typelevel, year
Tab2 :
'Month' as typelevel, year, month
In BMM, I have made one logical table with as Source tab1 and tab2 and as columns typelevel, year and month.
tab1 has in content column the year level
tab2 has in content column the month level.
So when in Answers I retrieve
typelevel, year
the result is : 'Year', 2008
and when I request : typelevel, year, month
the result is : 'Month', 2008, 1
But if I want to drill from year to month in order to have :
'Year', 2008
and then after drill
'Month', 2008, 1
it is impossible as a filter on typelevel='Year' is added on the month level, so it retrieves 0 columns.
If someone has an idea on how to do that it would be very great.
Thanks in advance for your help.Hi Supriya,
OOTB I think you can use SharePoint designer, but I would suggest custom code to iterate to all pages, and get the lists that are associated with these pages.
http://stackoverflow.com/questions/633633/sharepoint-how-can-i-find-all-the-pages-that-host-a-particular-web-part
another one would be if those lists were never used and you can check for list with empty data.
I would use Get-SPLists to get all of the lists to check for zero items.
http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/15/use-windows-powershell-to-manage-lists-in-sharepoint-2010.aspx
http://sharepointrelated.com/2011/11/28/get-all-sharepoint-lists-by-using-powershell/
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if my reply helps you -
How to build 2 hierarchies in time dimension
Hi All
I want to know how to build 2 hierarchies in time dimension in SAPBPC 7.5 NW.
thanksHi nilanjan chatterjee
thanks for your feedback. please check my time dim below.
we got two financial years.
1. jan to dec ( thats my parenth1)
2. apr to mar ( thats my parenth2)
In usertime id i copied 2008 time ids for fy2009 jan sep and from oct to dec copied 2009 jan to mar time ids.
ID Desc parenth1 parenth2 Timeid usertimeid
2009.Q1 2009.Q1 2009.TOTAL 20090001
2009.Q2 2009.Q2 2009.TOTAL 20090002
2009.Q3 2009.Q3 2009.TOTAL 20090003
2009.Q4 2009.Q4 2009.TOTAL 20090004
FY2009.Q1 FY2009.Q1 FY2009.TOTAL 20090001
FY2009.Q2 FY2009.Q2 FY2009.TOTAL 20090002
FY2009.Q3 FY2009.Q3 FY2009.TOTAL 20090003
FY2009.Q4 FY2009.Q4 FY2009.TOTAL 20090004
2009.TOTAL 2009.TOTAL 20090005
FY2009.TOTAL FY2009.TOTAL 20090005
2009.JAN 2009.JAN 2009.Q1 20090100 20090100
2009.FEB 2009.FEB 2009.Q1 20090200 20090200
2009.MAR 2009.MAR 2009.Q1 20090300 20090300
2009.APR 2009.APR 2009.Q2 20090400 20090400
2009.MAY 2009.MAY 2009.Q2 20090500 20090500
2009.JUN 2009.JUN 2009.Q2 20090600 20090600
2009.JUL 2009.JUL 2009.Q3 20090700 20090700
2009.AUG 2009.AUG 2009.Q3 20090800 20090800
2009.SEP 2009.SEP 2009.Q3 20090900 20090900
2009.OCT 2009.OCT 2009.Q4 20091000 20091000
2009.NOV 2009.NOV 2009.Q4 20091100 20091100
2009.DEC 2009.DEC 2009.Q4 20091200 20091200
FY2009.JAN FY2009.JAN FY2009.Q1 20090100 20080400
FY2009.FEB FY2009.FEB FY2009.Q1 20090200 20080500
FY2009.MAR FY2009.MAR FY2009.Q1 20090300 20080600
FY2009.APR FY2009.APR FY2009.Q2 20090400 20080700
FY2009.MAY FY2009.MAY FY2009.Q2 20090500 20080800
FY2009.JUN FY2009.JUN FY2009.Q2 20090600 20080900
FY2009.JUL FY2009.JUL FY2009.Q3 20090700 20081000
FY2009.AUG FY2009.AUG FY2009.Q3 20090800 20081100
FY2009.SEP FY2009.SEP FY2009.Q3 20090900 20081200
FY2009.OCT FY2009.OCT FY2009.Q4 20091000 20090100
FY2009.NOV FY2009.NOV FY2009.Q4 20091100 20090200
FY2009.DEC FY2009.DEC FY2009.Q4 20091200 20090300
thanks -
How to create a working day/holiday attribute in Time Dimension with OWB ?
Hello everybody,
I am trying with no success to create a Time Dimension (with the wizard it would be easier...) with a working day or holiday attribute (0 or 1) to be able to calculate measures only on working time !!! I am totally sure it's possible, obviously, but I found nothing on forums... Could you help me ??
I use OWB 11g, I need all fiscal year/quarter/month/week and all calendar year/quarter/month/week attributes so without any wizard it would be quite impossible... thank you for your help !
NB: of course I know how to define if a day is a working one or not, but I currently can't add any columns in Time dim created with wizard...
Francois
Edited by: [email protected] on Jun 15, 2009 8:24 AMHi,
First of all, thanks everyone for your help.
I did several tests this morning.
First of all, i've tried with time_from = 000000 and time_to = 235959 (23:59:59 CET) and the activity has been created with Time From = 04:00:00 and Time To = 03:59:59
Strange no ??
I've also tried with 230000 for time from and time to but the activity has been created with Time From = 03:00:00 and Time to = 03:00:00
I cannot understand the logic behind....
Thanks,
Johnny Baillargeaux -
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
GourisankarHi 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 use time dimension.
Hi All,
I have to create a report that will show the worth of portfolio based on time frame that is monthly, quarterly, yearly and since inception.
How can i proceed because i have never used time dimension?
Further i have only one column "Date" in the portfolio table that has a corresponding
worth value. SO i need to create the dimension based on this date column.
Pls help me
ThanksIf all you want is to achieve drills from Month, Quarter and Year then treat it as a normal dimension and create the levels. But if you want to do calculations like YTD, QTD and MTD then you need to create a time dimension. Check my blog entry here http://oraclebizint.wordpress.com/2007/11/05/oracle-bi-ee-101332-understanding-todate-and-ago-achieving-ytd-qtd-and-mtd/ for creating a sample time dimension. Also, you need to manually create logical columns corresponding to the levels that you need. So, if you have only a date column then create logical columns Year, Month and Quarter from this column and then create the time dimension.
Thanks,
Venkat
http://oraclebizint.wordpress.com -
How to load time dimension informatica...
Hi, im new to datawarehouse... Can anybody tell me,how to load time dimension informatica...
Thanks and Regards,
jagadish.Do you mean Informatica, the ETL tool? If you do then I would post your question on the Informatica website as we typically use Oracle Warehouse Builder and Analytic Workspace Manager here at Oracle.
If you want to know hoe to generate a time dimension table, then I would recommend using the Time Dimension Wizard in Warehouse Builder as this will automatically create the target dimension table and populate all the required levels with the correct data values. There is more information on the OWB OTN Home Page
Keith Laker
Oracle EMEA Consulting
OLAP Blog: http://oracleOLAP.blogspot.com/
OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
DM Blog: http://oracledmt.blogspot.com/
OWB Blog : http://blogs.oracle.com/warehousebuilder/
OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html -
How Can I do automated update base on changing TIME dimension ?
I am a beginner of ESSBASEhow Can I do automated update base on changing TIME dimension ? how can I deal with the change of TIME dimension ? shall I update outline?one more question,how can i deal with the dimension like this:------gp--------- p1-----------c1-----------d1--------- p2-----------c2-------------cc2-------------cd2-------------ce2 -----------c3-----------c4 --------- p3the un-balance dimension? shall I make them to balance?
Hi man, where are you from?If you are a spansh spoken please send again the problem in Spanish cause I can't understand exactly what do you need.Greetings,Raleksander
-
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 -
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 to build dynamic time series for the time dimension
I am planning to build dynamic time series using rule file instead of manually.Please let me know if there is any property need to assign to enable DTS property for TIME dimension.
Edited by: 844104 on Mar 14, 2011 3:37 AMIn the load rule in the dimension build settings you would need to go to the tab dimension definition, choose the time dimension and right click on it. Select Edit properties. If you have not done so, set the dimension to be the time dimension. Then go to the generations/levels tab and set the generation names you need. For example if you want YTD, you would set the generation name to Year, if you want QTD set it to Quarter. You would set the number to the generation number that coorisponds to the generation. The DBAG has the list of names for all of the DTS members.
-
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
LudovicHi 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
Maybe you are looking for
-
Why can I not download prev punch music - only books and apps?!
I have tried so many times to download previously purchased music. I have been looking at my account, and it is all there, but unable to download. I have reported every song as a problem, but after the 6th or 7th song I am automatically directed to t
-
Error in IDoc to JDBC scenario
Hi friends, I am configuring an IDoc to JDBC scenario in XI.When I am testing the scenario in Test Configuration then it is getting processed successfully but when I am tseting the entire configuration then in sxmb_moni the following error is sho
-
How do I activate the VPN, FTP, and File Sharing on my server? Also, is there a way to access my server from another machine without using my IP address without port forwarding and/or registering an internet host name? Also, I have another post on ho
-
Is writing to flash drive always in "mass USB storage mode"?
I am trying to display JPEGs on my HDTV using a MEDIAGATE M2TV 1080P Media Player. I have written JPEG files to a flash drive and connected the flash drive to the M2TV Player, which doesn't recognize the USB flash drive. The M2TV manual says that onl
-
Questions for tr:inputDate
Hi all, I got 2 questions when migrating to 11g for this inputDate component: 1) the calendar icon image shows an image not the one used in the skin css file: in 10g, I can see the image is rendered as: <img border="0" align="middle" alt="Select to a