Employee Dimensions
2 posters
Page 1 of 1
Employee Dimensions
I currently have the below dimensions for my employees Fig.1, Users belong to a Team, a Team can have many Functions and the TeamFunction combo belongs to a BusinessUnit.
Have I followed the correct kimball convention? I feel like I have moved from a star to snowflake schema. Should I create one table with User, Team and flatten the multiple functions and BusinessUnits, this would be good when referencing Users as it would be one table I could join to and get the relevant team, functions and businessUnit. How would this work as a hierachy though, I would want the ability to drill through each layer.
Regards,
Julian
Fig.1
UserDim
UserKey (PK)
UserID (Natural key)
UserType
UserName
Forename
Surname
TeamKey (FK)
TelephoneWork
MobileWork
EmailWork
TeamDim
TeamKey (PK)
TeamID (Natural key)
TeamName
FunctionDim
FunctionKey (PK)
FunctionID (Natural Key)
FunctionName
TeamFunctionDim
TeamFunctionKey (PK)
TeamKey (FK)
FunctionKey (FK)
BusinessUnitKey (FK)
BusinessUnitDim
BusinessUnitKey (PK)
BusinessUnitID (Natural key)
BusinessUnitName
Have I followed the correct kimball convention? I feel like I have moved from a star to snowflake schema. Should I create one table with User, Team and flatten the multiple functions and BusinessUnits, this would be good when referencing Users as it would be one table I could join to and get the relevant team, functions and businessUnit. How would this work as a hierachy though, I would want the ability to drill through each layer.
Regards,
Julian
Fig.1
UserDim
UserKey (PK)
UserID (Natural key)
UserType
UserName
Forename
Surname
TeamKey (FK)
TelephoneWork
MobileWork
EmailWork
TeamDim
TeamKey (PK)
TeamID (Natural key)
TeamName
FunctionDim
FunctionKey (PK)
FunctionID (Natural Key)
FunctionName
TeamFunctionDim
TeamFunctionKey (PK)
TeamKey (FK)
FunctionKey (FK)
BusinessUnitKey (FK)
BusinessUnitDim
BusinessUnitKey (PK)
BusinessUnitID (Natural key)
BusinessUnitName
juliang- Posts : 4
Join date : 2013-08-13
Re: Employee Dimensions
In my view either Star or Snowflake will work for your hierarchies however depending upon the BI / reporting tool you are going to use you should really decide on perfect star or snowflake or hybrid (where you may just add the parent keys to all flakes that way you may reduce the multiple join to go from one level to the other). If it MicroStrategy or BO i would go with combination of Star and Snowflake i.e. hybrid in which each flake will store all parent key field at least. so if you have User level fact and business user want to skip the fields and jump directly to TeamDim that can happen easily with just joining one more table BusinessunitDim -> TeamDim then going from Business unit Dim -> TeamfunctionDim -> FunctionDim -> TeamDim. Hope this make sense.
Thanks
Thanks
Samsingh- Posts : 4
Join date : 2013-06-11
Re: Employee Dimensions
I will be building a cube on top with SSAS, thanks for the advice
juliang- Posts : 4
Join date : 2013-08-13
Similar topics
» Modeling Employee and Employee Role dimension.
» Employee Dimension and Employee "Profile" Dimension?
» Schema Roadblock: Dimension vs Fact [Dimensions w/FKs to other Dimensions?]
» Question about Dimensions with SKeys to join with other dimensions.
» Correlated - Separate Dimensions OR Single Dimensions ?
» Employee Dimension and Employee "Profile" Dimension?
» Schema Roadblock: Dimension vs Fact [Dimensions w/FKs to other Dimensions?]
» Question about Dimensions with SKeys to join with other dimensions.
» Correlated - Separate Dimensions OR Single Dimensions ?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum