I'm working on setting up a 2008 SSAS database using Visual Studio 2008. We have AdventureWorksDW2008R2 as our database in SQL Server 2008 R2. We created a cube in VS 2008 and brought in the dimension "Dim Date" with the fact table called "Internet Sales".We can deploy no problem but the issue is when we try to build attribute relationships. When we build this relationship, it works fine:Date Key --> Full Date Alternate Key --> English Month Name --> Calendar Quarter --> Calendar SemesterThe moment we add Calendar Year, it fails saying: "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'."Date Key --> Full Date Alternate Key --> English Month Name --> Calendar Quarter --> Calendar Semester --> Calendar YearWhere are we going wrong? We're having issues with this duplicate error in almost every other attribute relationship we setup. We created a different attribute relationship for our Customer dimension for Gender and Martial Status and we got the exact same issue - except duplicate value in Martial Status is (S).We are creating the relationships because we intend to setup hierarchies. The hierarchies work fine without the relationships so we are a bit perplexed.Here is what we've checked:1.) Quarter, Semester and Year contain NO NULLs2.) Quarter, Semester and Year do duplicate (as we'd expect for each date). What is wierd is why does it work without Year in the relationships but it works with Semester & Quarter?Where are we going wrong here?
↧