Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Dimension Hierahchy

Author  Topic 

Oliver wang
Yak Posting Veteran

50 Posts

Posted - 2012-07-14 : 10:31:21
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
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2012-07-16 : 04:13:06
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
Yak Posting Veteran

50 Posts

Posted - 2012-07-17 : 10:01:01
Thank you very much for your advice, nigelrivett.
Go to Top of Page
   

- Advertisement -