Redundant Attributes in Related Dimensions
3 posters
Page 1 of 1
Redundant Attributes in Related Dimensions
I have a model that contains two dimensions 1) Company and 2) Location. Does it make sense to have an attribute such as CompanyName in both the Company and Location dimensions?
If I'm looking at measures primarily by Location, it is convenient to be able to also see the Company Name. Not to mention, have a hierarchy Company -> Location.
I don't want to denormalize the two into one dimension because I have some facts that are at the higher Company level of granularity.
If I'm looking at measures primarily by Location, it is convenient to be able to also see the Company Name. Not to mention, have a hierarchy Company -> Location.
I don't want to denormalize the two into one dimension because I have some facts that are at the higher Company level of granularity.
Last edited by delish on Fri Sep 16, 2011 11:01 am; edited 1 time in total (Reason for editing : Clarification)
delish- Posts : 5
Join date : 2011-09-14
Re: Redundant Attributes in Related Dimensions
You could have the CompanyName in the Location dimension if it is strictly 1-m hierarchical, meaning one company has offices in many locations and no more than one company in each location. However I am sceptical about that, as normally you would also have many companies in one location, in which case you cannot have CompanyName in the Location dimension but have to use bridge table to sort out m-m relationship.
hang- Posts : 528
Join date : 2010-05-07
Location : Brisbane, Australia
Re: Redundant Attributes in Related Dimensions
I think the best option is having the address details in the Company dimension and if a company have multiple addresses, the record would be repeated. However as you mentioned you don't want to have it denormalised, I think it might be good if you add a bridge table between Company and Location to handle this situation. The bridge table can have the following columns:
- Company ID
- Location ID
- Company ID
- Location ID
Tootia- Posts : 7
Join date : 2011-08-30
Location : Australia
Similar topics
» Product and Related Dimensions
» Bridge table - two customer-related dimensions
» fact table's foreign key related to multiple dimensions
» Account attributes in separate dimensions
» attributes depending on more than 1 dimension (2 dimensions)
» Bridge table - two customer-related dimensions
» fact table's foreign key related to multiple dimensions
» Account attributes in separate dimensions
» attributes depending on more than 1 dimension (2 dimensions)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum