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

Are dates degenerated dimensions?

3 posters

Go down

Are dates degenerated dimensions? Empty Are dates degenerated dimensions?

Post  evgeninikolov Tue Jul 17, 2012 11:20 am

Hi,

Am I allowed to look at date dimensions as like a degenerated dimensions or do I need always to have a surrogate key for them?

Regards,

Evgeni

evgeninikolov

Posts : 6
Join date : 2012-07-10

Back to top Go down

Are dates degenerated dimensions? Empty Re: Are dates degenerated dimensions?

Post  BoxesAndLines Tue Jul 17, 2012 1:09 pm

A degenerate dimension is a source system identifier with no describing attributes used to group facts. That is not the purpose of a date. Add the foreign key.
BoxesAndLines
BoxesAndLines

Posts : 1212
Join date : 2009-02-03
Location : USA

Back to top Go down

Are dates degenerated dimensions? Empty Re: Are dates degenerated dimensions?

Post  ngalemmo Tue Jul 17, 2012 4:22 pm

evgeninikolov wrote:Hi,

Am I allowed to look at date dimensions as like a degenerated dimensions or do I need always to have a surrogate key for them?

Regards,

Evgeni

What does your date dimension look like? It should contain a lot of things, such as month labels, day of week, fiscal calendar data, and so on. The question is, does the date you are trying to store need these attributes? If it does, then store a FK to the date dimension. If it is something like an effective date that would only ever be used as a date to filter selections, then you can just store the date itself as a degenerate dimension.
ngalemmo
ngalemmo

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

http://aginity.com

Back to top Go down

Are dates degenerated dimensions? Empty Re: Are dates degenerated dimensions?

Post  evgeninikolov Tue Jul 17, 2012 4:35 pm

ngalemmo wrote:
What does your date dimension look like? It should contain a lot of things, such as month labels, day of week, fiscal calendar data, and so on. The question is, does the date you are trying to store need these attributes? If it does, then store a FK to the date dimension.

Yeah, it is a full blown date dimension :-( And since the fiscal year is different than the calendar year I need those attributes. OK, so the decision is taken! I think that the main argument is that there should be a special values for invalid or infinite dates as AFAIK null values and outer joins are not permited in the dimensional modelling.

evgeninikolov

Posts : 6
Join date : 2012-07-10

Back to top Go down

Are dates degenerated dimensions? Empty Re: Are dates degenerated dimensions?

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