Duplicate time dimensions
Hello all
I think I have a simple requirement but I don't how it works :
I have some dimensions and a fact tables. In my fact table, I have 2 foreign key on my time dimension.
When I import my tables and check consistency, I have errors : "duplicate foreign key. Delete it" (don't remember full sentence)
That is the first point that I don't understand. Why can I not have more than 1 foreign key ?
The second point is how to do to have 2 time dimensions. In the BMM, I duplicate my time dimension. But which join do I choose ? I tested with foreign key and complex join (and 2 or 1 foreign keys in physical) and I always have the same (wrong) result.
So can anyone explain me how to configure both physical and BMM joins to use a dimension more than 1 time (without create a new physical dimension of course)
Thanks
Hi,
Create Alias tables (since they are playing different roles) for time dimension in the Physical layer and join that with your fact using physical joins.
After Importing to physical layer, if duplicate keys exists, delete the duplicate keys.
In this scenario two keys will be exist on the fact for the time dimension, delete those and create the joins between the aliases.
Thanks,
Vino
Similar Messages
-
Chart DateTimeAxis Duplicate Time
Do you know if there is a way to handle duplicates in a
DateTimeAxis? For example, if my dataset is
Time, Quantity
12:00:01pm, 1000
12:00:02pm, 500
12:00:02pm, 500
The chart only shows Quantity = 500 at time 12:00:02pm. Is
there an automatic way to add them together?
Thanks very much.Hi,
Create Alias tables (since they are playing different roles) for time dimension in the Physical layer and join that with your fact using physical joins.
After Importing to physical layer, if duplicate keys exists, delete the duplicate keys.
In this scenario two keys will be exist on the fact for the time dimension, delete those and create the joins between the aliases.
Thanks,
Vino -
Multiple time dimension hierarchies ?
Hi, is it possible to easily define multiple hierarchies in a time based dimension ?
I know the time dimension wizard allows the definition of only 1 hierarchy but I need to have a time dimension that has both a calendar based and a fiscal calendar hierarchy.
It is possible to modify the dimension definition after using the wizard but I don't think the original mapping automatically generated by the wizard is updated.
Anyone done this ?
Thanks
PaulHi,
Did any of you manage to create the extra hierarchy in the time dimension?
I also created the standard time dimension with only one fiscal hierarchy first, but later found the need to add another fiscal hierarchy that has month as the leaf level (does not include day level). However, when deploying, I get the message "ORA-00957: duplicate column name"...
(Reason for defining other hierarchy without the day level is that it seems that when using auto-solve on a compressed cube, it tries to solve from all leaf levels upward, but one cube I have is loaded at the month level of the time dimension... day level is not applicable in this specific cube. Using the standard fiscal hierarchy in this case does not work on that cube.)
Thanks,
Ed
PS Looking at the ddl script from the Job Details window, the duplicate columns are in the auto generated stage tables/views (for month and quarter level; not for year level(?)). How can we influence OWB to generate the correct things???
Create table "OWB$STGTBL_D_DI_FISCAL__2B6926" (
FISCAL_QUARTER_F_2B69262B6934 number,
FISCAL_QUARTER_F_2B69262B6934 number);
Create table "OWB$STGTBL_D_DI_FISCAL__2B6915" (
FISCAL_MONTH_FI_2B69152B6926 number,
FISCAL_MONTH_FI_2B69152B6926 number);
Message was edited by:
EdSp -
Correctly configuring attributes of time dimension
I have a time dimension(simplified one).
It consists of
DateKey int
Date DateTime
MonthName Text
MonthVal Date (1st day of month)
The dimension processes correctly if I don't have the Month ValueCol attribute set to "monthVal", but if I set it I get a "Duplicate keys" error. As the grain of the dimension is day, there is obviously going to be duplicates in the MonthVal
column.
In this case, how do I set the monthValue property without experiencing a processing error due to duplicate keys?Hello,
I would suggest you go through the following article to troubleshoot "Duplicate Keys" error when process a dimension in SSAS, please see:
Analysis Services: Errors in the OLAP storage engine: A duplicate attribute key has been found when processing:
http://social.technet.microsoft.com/wiki/contents/articles/19726.analysis-services-errors-in-the-olap-storage-engine-a-duplicate-attribute-key-has-been-found-when-processing.aspx
If you have any feedback on our support, please click
here.
Regards,
Elvis Long
TechNet Community Support -
Ok, the Oracle Enterprise Manager was kind enough to automatically create the often used Time dimension for me. It even created the associated look up table for me.
Question:
Is there a facility/function/feature that populates the weeks - month - year levels in this new lookup table or do I have to do it "by hand"?
Thanks for your time.
GGAReposted.
-
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 -
Advice needed: join fact to time dimension with between clause
Hi All,
I've got 1 dimension and two fact tables. The 1 dimension could serve as a time dimension.(not specifically marked as this is a time dimension)
My Tables look like this (simplified)
Dim1:
date_pk (unique identifier)
date
month
year
fact1:
iid_date (foreign key to date_pk)
fact1_amount
Fact2:
begin_date
end_date
fact2_amount
In the physical layer i have a complex join between fact 1 and dim1 (date_pk = idd_date) and a complex join between fact2 and dim1 (dim1.date between fact2.begin_date and fact2.end_date and dim1.date <= CURRENT_DATE). In the business model i have complex joins between fact1 and dim1 and a complex join between fact2 and dim1 without further specification.
What I would like to achieve in Answers is that I select a Year and a Month from dim1 and add fact1_amount and fact2_amount to the same report and that the report shows both amounts. I would like some advice on how to set this up. Further more how to add a drill from year to month to date and what should I do when I'm willing to add more facts joined to the same Dim1
Any Advice is greatly appreciated
GillesHello MMA1709,
You're right, this setup works!
But...
When you add an hierarchy and mark it as a time dimension it doesn't work anymore. It gives the following error in the consistency checker:
[38086] Physical table Dim1 in the time dimenison table source Dim1 is part of a complex join condition
And that means you cannot use any timebased calculations (AGO and TODATE). When I just create an hierarchy and do not mark it as a time dimension the hierarchy works well.
Any suggestions? -
Slicer Time Dimension Issue with Cube Functions
Hi,
Hoping someone can help me figure out right approach here.
Summary:
Using Excel 2013 connected to a SSAS cube as data source, and cube functions with slicers to create a dashboard.
Have following time dimension slicers; Fiscal Year, Fiscal Quarter, Fiscal Month, Fiscal Week & Date, that are used to slice data based on user selection, along
with a sales measure.
Below is example of Slicer name and CubeMember function for each:
Slicer_Fiscal_Year:
=CUBEMEMBER("Cube","[Date].[Fiscal Year].&[2015]")
Slicer_Fiscal_Quarter:
=CUBEMEMBER("Cube","[Date].[Fiscal Quarter].[All]")
Slicer_Fiscal_Month:
=CUBEMEMBER("Cube","[Date].[Fiscal Month].&[201408]")
Slicer_Fiscal_Week:
=CUBEMEMBER("Cube","[Date].[Fiscal Week].&[201509]")
Slicer_Date:
=CUBEMEMBER("Cube","[Date].[Date].[All]")
Problem:
What I am trying to do is to build a table with cube functions that takes the lowest grain of the slicer time dimension selected, shows the current member, plus
the prior 7 so I can have an 8 period trending view table that I will build a chart from. In the above example that would mean that it would look at Slicer_Fiscal_Week since that is lowest grain that has an attribute other than All, and then show me the prior
7 periods. In this case 201509 means Week 9, so I would want to show in table Week 9 back to Week 2. But if Slicer_Fiscal_Week was set to All, along with Slicer_Date, then Fiscal Month would be lowest grain, so I would want to show Fiscal Months from August
(201408) back to January 2014. I know how to use CubeRankedMember to pull the value from what is selected in the slicer, the problem is figuring out how to pass the lowest grain time dimension so that I can use lag or some other MDX function to get the previous
periods.
Any help on this would be greatly appreciated.
<object height="1" id="plugin0" style=";z-index:1000;" type="application/x-dgnria" width="1"><param name="tabId" value="{28593A5C-70C0-4593-9764-80C76B51795C}"
/></object>Hello,
Thank you for your question.
I am trying to involve someone familiar with this topic to further look at this issue.
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Fiscal Year Time Dimension - Month Time Span
I have a need to create a fiscal year time dimension and I created using Time Wizard in OWB. When I was developing BI Reports, I found some inconsistencies in Time dimension as it was showing figures in all the months of my first quarter of new financial year that Apr 2009 – Mar 2010. On close inspection of Time Dimension table I found that fiscal_month_time_span value varies from 35 to 28 to 29 for different months. i.e. it’s not matching with corresponding Calendar month. This means I am unable to plot data correctly using fiscal year dimension.
Maybe this is how it works in Oracle, but this does not solve my problem. Could anyone give me some solution for this ? My Fiscal year is from ‘1- Apr – 09’ to ’31-Mar-10’. In my reports I would like to see transactions for April month when I use month attribute of time dimension like it happens in Calendar time dimension.May be someone from
Forum: Business Intelligence Suite Enterprise Edition can answer this .
Please post it there. -
Multiple Fiscal Calendars Displayed in Subject Area Time Dimension
Hi all,
Thanks for taking the time to review my post.
Environment
Oracle BI Applications 7.9.6 Financial Analytics
Oracle E-Business Suite 11.5.10
Query
The Time dimension on my Subject Areas (Financial Analytics) are showing more period data than I expected.
I have configured one Enterprise Calendar (WPG_Calendar) that I set in the DAC parameters - $$GBL_CALENDAR_ID (WPG_Calendar~Month) and $$GBL_DATASOURCE_NUM_ID (4). The warehouse Enterprise Calendar table W_ENT_PERIOD_D is populating with the periods as configured in EBS for that calendar(Jan-09, Feb-0, Mar-09, etc). I noticed that the Multiple Fiscal W_MCAL_PERIOD_D table is also been populated with the Enterprise Calendar data PLUS, the Seeded EBS calendar (JEBE_MONTH_VAT) and a generated Calendar that appears to be a 5-4-5-4 Calendar (Jan-01-09, Jan-02-09, Jan-03-09, etc). The trouble is these W_MCAL_PERIOD_D periods and dates are all coming through in my Time dimensions and make it confusing for the Answers Users when choosing a Time dimension.
Also, for columns W_CURRENT_MCAL_PERIOD_CODE, W_CURRENT_MCAL_QTR_CODE, W_CURRENT_MCAL_YEAR_CODE there are rows with Current, Previous and Next populated that span these different periods as you would expect, but I'm concerned these return multiple rows for Filters Current Fiscal Quater, Current Fiscal Year.
Funnily enough, W_CURRENT_MCAL_MONTH_CODE has nothing populated (NULLs for all rows).
Your comments are most welcome.
Kind Regards,
Gary.The filtering of the calendar can be done directly on the logical layer.
for the logical dimension "Dim - Date Fiscal Calendar", Logical Table Source "Dim_W_MCAL_PERIOD_D_Fiscal_Period"
set the content as :
"Oracle Data Warehouse".Catalog.dbo.Dim_W_MCAL_PERIOD_D_Fiscal_Period.MCAL_CAL_WID = VALUEOF("MY_MCAL_WID")
and setup the repository variable MY_MCAL_WID to match with your calendar wid.
If your calendar depends on any context then you can use session variable instead of repository variable -
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 - YearHi 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 -
Getting error while deploying a cube with time dimension
Hi,
I created a time dimension using WB with Cal yr and day heirarchy. Designed a cube using both and tried to deploy it. I got the following error.
Appreciate your help..
Name
Type
Status
Log
TIME_CUB1
Cube
Success
VLD-0001: Validation completed successfully.
TIME_CUB1
Description : Runtime User : OWB_REP_OWNER Started : 2006-12-13 15:37:17.0
Name
Action
Status
Log
TIME_CUB1
Create
Error
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "OLAPSYS.CWM2_OLAP_CUBE", line 394
ORA-06512: at line 5Hi,
I'm having problems to deploy this cube (this was the origin of my problem), when I change it to "Deploy Data Object Only", It don't generate code and the cube is not created. This is what I get:
-- Product : Oracle Warehouse Builder
-- Generator Version : 11.1.0.6.0
-- Created Date : Wed May 12 08:41:59 CST 2010
-- Modified Date : Wed May 12 08:41:59 CST 2010
-- Created By : edennis
-- Modified By : edennis
-- Generated Object Type : TABLE
-- Generated Object Name : FACT_TMP_SALDOS
-- Comments :
-- Copyright © 2000, 2007, Oracle. All rights reserved.
WHENEVER SQLERROR EXIT FAILURE;
Ideas?
Thanks for your help! -
ERROR while loading time dimension table
i need to load time dimension from csv to oracle table, while loading i got the error.
my source data type is date and target is date.
ODI-1226: Step sample day fails after 1 attempt(s).
ODI-1240: Flow sample day fails while performing a Loading operation. This flow loads target table W_SAMPLE_DATE.
ODI-1228: Task SrcSet0 (Loading) fails on the target ORACLE connection Target_Oracle.
Caused By: java.sql.SQLException: ORA-30088: datetime/interval precision is out of range
while creating c$ table
create table WORKSCHEMA.C$_0W_SAMPLE_DATE
C3_ROW_WID NUMBER(10) NULL,
C1_CALENDAR_DATE TIMESTAMP() NULL,
C2_DAY_DT TIMESTAMP() NULL
)check the source data and use the correct function eg TO_DATE(SRC.DATE, 'MM?DD/YYYY') use NVL if required.
-
Error while saving rpd (problen with time dimension)
Hi all.
I have business model that have no errors/warnings during "check consistency" procedure. But when I save rpd i get error:
-->The Physical table '***' which is part of a time dimension, is also used in the logical table 'XXX', which is not part of any time dimension.
Does someone know how to fix this?go to time dimention -> right click -> check the box: time dimension
-
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!
Marcoshi,
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
Maybe you are looking for
-
Text-to-speech crashes at the same point in a document when trying to create an audio file
I like to convert text to audio (large documents), and have been doing this using a 3rd party app for a long time now. The app sometimes crashes at a specific point in a text (i.e. it always crashes at the same point no matter where I start from).
-
Hello I am having a File/FTP Adapter at my receiving end.I have noted that if a async msg is sent with Exactly Once option and if FTP server is down the message does not gets delivered but as soon as its up it gets delivered. I just wanted to know ho
-
Manual Update of InfoObject -Master Data
Hello!! I need to update master data stored in a InfoObject. I know i can make this update using trx. RSDMD or RSA1. However, is the end user who has to load / modificate master data of InfoObject. What is the best practice to give the user a quick a
-
Import US Per Diems from Internet Travel Management
Dear all! I hope someone can help me. I have problems with the IMG Activity "Import US Per Diems/Flat Rates from Internet" (Transaction PREP) Path is: Financial Accounting > Travel Management > Travel Expenses > Trip Reimbursement Amounts > Automatic
-
Looking for addition articles for the Arch Linux Press Review wikipage
Good day all, I recently updated the Arch Linux Press Review wikipage, found here: http://wiki.archlinux.org/index.php/Arc - ess_Review If you know of any additional reviews or articles about Arch Linux, please edit the wiki page or post the info as