SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Dimension Hierahchy
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Oliver wang
Starting Member

China
49 Posts

Posted - 07/14/2012 :  10:31:21  Show Profile  Reply with Quote
Hello everyone,

I was doing a SSAS test using "AdventureworksDW2008". I chose table "dbo.dimdate" as a dimension and created an hierarchy whose structure is as below:
Calendar Year
Calendar Semester
Calendar Quarter
Month number of Year
Day number of Month

when I processed this Dim at this time, everything was working fine. Bur if I add attribute relationships as below:
DateKey->Day number of Month->Month number of Year->Calendar Quarter->Calendar Semester->Calendar Year, when I processed again, it was giving me an error stating "Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'dbo_DimDate', Column: 'CalendarSemester', Value: '2'. The attribute is 'Calendar Semester'."

Could anyone give me some advice on this? Thank you very much.

regards,

Oliver

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3328 Posts

Posted - 07/16/2012 :  04:13:06  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
It's because you have the same calendar semester under different calendar years. (Think it's that way round)
You can get round this by concatenating the year with the semester for the hierarchy value but using just the semester for the display value. Think yoou will have the same issue with other columns as you are trying to define a strict hierarchy.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Oliver wang
Starting Member

China
49 Posts

Posted - 07/17/2012 :  10:01:01  Show Profile  Reply with Quote
Thank you very much for your advice, nigelrivett.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000