Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

SSAS - Date Dimension ties wrong dates to hierarchy

$
0
0
I'm using my own date dimension instead of the MS generated date dimension. I've got a table structure like this:[code="sql"]CREATE TABLE [dbo].[DateDim]([DateID] [int] NOT NULL, --PK[FullDate] [date] NOT NULL,[Year] [smallint] NOT NULL,[QuarterOfYear] [tinyint] NOT NULL,[MonthOfYear] [tinyint] NOT NULL,[DayOfMonth] [tinyint] NOT NULL,)[/code]Hierarchy created: Year, Quarter, Month, Day of MonthRelationships: DateDim->DayOfMonth->Month->Quarter->YearComposite keys created for DayOfMonth: Year, Month, DayOfMonth; Month: Year, Month; Quarter: Year, Quarter;However, after creating and processing this, I get Year, Quarter, Month, and Day, but the FullDate associated with each seems to only be associated at the "Day of Month" level. The actual date has no bearing on the hierarchy. I know I must be missing something along the way, but not sure what I'm doing wrong.Any pointers on how to set this up properly without creating redundant relationships or cloning columns? (I know the former is improper)

Viewing all articles
Browse latest Browse all 1341

Trending Articles