implementing junk dimension
5 posters
Page 1 of 1
implementing junk dimension
Hi everyone, I am new to DW and have an implementation question regarding a junk dimension.
I have a junk dimension with a 15 Y/N flags. Total number of rows for all possible combinations of these flags is around 32,000. Of those only 57 combinations are being used by the facts. So I want to just load these 57 rows in the junk dimension and use those foriegn keys for loading the fact table.
The question is when a new fact arrives with a new combination of these flags, how to create a new row in the dimension and get the key populated into the fact table for that fact using SSIS or SQL. I mean I want to generate the dimension rows as and when they are needed as opposed to having them all created ahead of time. I dont know if thats OK
Hope someone can help me with this
I have a junk dimension with a 15 Y/N flags. Total number of rows for all possible combinations of these flags is around 32,000. Of those only 57 combinations are being used by the facts. So I want to just load these 57 rows in the junk dimension and use those foriegn keys for loading the fact table.
The question is when a new fact arrives with a new combination of these flags, how to create a new row in the dimension and get the key populated into the fact table for that fact using SSIS or SQL. I mean I want to generate the dimension rows as and when they are needed as opposed to having them all created ahead of time. I dont know if thats OK
Hope someone can help me with this
VJ09- Posts : 11
Join date : 2012-07-02
Re: implementing junk dimension
You load dimensions before you load fact tables. When the new dimension row comes in, insert it. When you load your fact table, the dimension row will be there.
BoxesAndLines- Posts : 1212
Join date : 2009-02-03
Location : USA
Re: implementing junk dimension
The problem is you might not know about new combinations for the junk dimension until you start loading the fact table. One approach is to pre-scan the incremental fact rows to find new combinations and add them to the junk dimension. See Design Tip #113 for more specifics:
http://www.kimballgroup.com/html/09dt/DT113CreatingUsingMaintainingJunkDimensions.pdf
--Warren
http://www.kimballgroup.com/html/09dt/DT113CreatingUsingMaintainingJunkDimensions.pdf
--Warren
warrent- Posts : 41
Join date : 2008-08-18
Re: implementing junk dimension
Where is this file: DT113CreatingUsingMaintainingJunkDimensions.pdf? The link http://www.kimballgroup.com/html/09dt/DT113CreatingUsingMaintainingJunkDimensions.pdf is broken.
Steveo250k- Posts : 6
Join date : 2012-08-10
Re: implementing junk dimension
It's here: http://www.kimballgroup.com/2009/06/03/design-tip-113-creating-using-and-maintaining-junk-dimensions/
Tell you what, if it's only 32,000 with Y and N, I would not bother to maintain the junk dimension as it's a very small dimension for a lot of attributes. I would just prebuild by cross joining Y and N sets.
Tell you what, if it's only 32,000 with Y and N, I would not bother to maintain the junk dimension as it's a very small dimension for a lot of attributes. I would just prebuild by cross joining Y and N sets.
hang- Posts : 528
Join date : 2010-05-07
Location : Brisbane, Australia
Similar topics
» bridge table and junk dimension on customer dimension (bank/credit union)
» modelling Product dimension for Pizza outlet
» Should I use a degenerate dimension or create a junk dimension?
» Implementing audit dimension error
» Implementing Employment SCD2 Dimension
» modelling Product dimension for Pizza outlet
» Should I use a degenerate dimension or create a junk dimension?
» Implementing audit dimension error
» Implementing Employment SCD2 Dimension
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum