Kimball Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Aggregated Date Dimension

3 posters

Go down

Aggregated Date Dimension Empty Aggregated Date Dimension

Post  jimbo1580 Thu Dec 24, 2009 9:54 am

In my dimensional model, I have a Date dimension that plays many different roles in multiple fact tables. I will also have a fact table that store metrics aggregated at the Month level and one that stores metrics aggregated at the Quarter level. How should I populate the rows in my aggregated Date dimensions (Month, Quarter)? Should the keys of the rows in the aggregated tables match the rows in the detail Date dimension? If so, what are the benefits of this?

Thanks!

jimbo1580

Posts : 23
Join date : 2009-04-30

Back to top Go down

Aggregated Date Dimension Empty Re: Aggregated Date Dimension

Post  VHF Thu Dec 24, 2009 12:23 pm

It sounds like the best practice is to use the same keys as the daily date dimension. Pick a key--tyically either the first day or the last day of the month/quarter--to use as the key for that month/quarter. Seems like there is a split of opinion on creating mini-dimenions that contain 1 row for each month/quarter or just using the daily date dimension table for everything--typically with the addition of flags to indicate that this row also represents a month or quarter.

In your case of working with aggregated data of a given grain it might not be quite as important, but when working with data at different grains--such as comparing monthly budgets or forecasts against daily facts--using the same key greatly facilitates reporting (by grouping on the date 'month' attribute, for example.)


Last edited by VHF on Thu Dec 24, 2009 1:24 pm; edited 2 times in total (Reason for editing : clarity)

VHF

Posts : 236
Join date : 2009-04-28
Location : Wisconsin, US

Back to top Go down

Aggregated Date Dimension Empty Re: Aggregated Date Dimension

Post  ngalemmo Thu Dec 24, 2009 1:20 pm

There is a discussion of this at http://forum.kimballgroup.com/dimensional-modeling-and-data-architecture-f6/date-dimension-t290.htm
ngalemmo
ngalemmo

Posts : 3000
Join date : 2009-05-15
Location : Los Angeles

http://aginity.com

Back to top Go down

Aggregated Date Dimension Empty Re: Aggregated Date Dimension

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum