Case for the having key of fact in another fact table
2 posters
Page 1 of 1
Case for the having key of fact in another fact table
Hi,
Here is our case.
We have some information like churn band and segmentation code that we are getting as write back from the analytical process .Same information is expected to be available at reporting layer. Also more kinds of analytical scores are expected to add in later stages.
In our architecture we have standard star schema and reporting is done from several snapshot fact tables.
Now problem here is how should we deal with these attribute .In current architecture we have added those scores as part of the fact table itself but the problem is that code for this fetching of score from write back table and writing it to fact table is getting redundant for different fact tables also addition of new score can be problematic.
We were thinking of adding a separate dimension that will hold all the scores for the customer and then add the key of that dimension to the fact tables .Is it acceptable solution.
Thanks
Here is our case.
We have some information like churn band and segmentation code that we are getting as write back from the analytical process .Same information is expected to be available at reporting layer. Also more kinds of analytical scores are expected to add in later stages.
In our architecture we have standard star schema and reporting is done from several snapshot fact tables.
Now problem here is how should we deal with these attribute .In current architecture we have added those scores as part of the fact table itself but the problem is that code for this fetching of score from write back table and writing it to fact table is getting redundant for different fact tables also addition of new score can be problematic.
We were thinking of adding a separate dimension that will hold all the scores for the customer and then add the key of that dimension to the fact tables .Is it acceptable solution.
Thanks
Ashish Mishra- Posts : 11
Join date : 2011-02-22
Re: Case for the having key of fact in another fact table
When you refer to "scores", I assume they are modeled values. I think the modeled scores are like age. Age is an attribute which can also be used like a measure. On a member fact, you can use Age to create an Average measure. But you can also roll up members by age and members can be put into categories by age ranges, suggesting that Age be a dimension with hierarchies.
Credit scores, test scores, etc can be treated the same way. Modeled scores are typically used in marketing to tier customers.
The scores would basically be a sort of junk dimension.
Credit scores, test scores, etc can be treated the same way. Modeled scores are typically used in marketing to tier customers.
The scores would basically be a sort of junk dimension.
Jeff Smith- Posts : 471
Join date : 2009-02-03
Thanks
Hi,
Yes I am calling score to the modeled values .
My trouble here is that since scroes will change at certain frequency how do i model them
Keeping them in fact table is easy but as we have alot many fact this can be seen as redundant data.
Hence i wanted to model them as dimension and connect that to fact tables trouble here is i m not sure whether i should model the dimension table and customer grain (grain of score ) or should i create i list of all possible value of these score bands and connect the appropriate row(combination) to the fact table this seems like a complicated ETL solution .
Has anyone ever done something like that .
Yes I am calling score to the modeled values .
My trouble here is that since scroes will change at certain frequency how do i model them
Keeping them in fact table is easy but as we have alot many fact this can be seen as redundant data.
Hence i wanted to model them as dimension and connect that to fact tables trouble here is i m not sure whether i should model the dimension table and customer grain (grain of score ) or should i create i list of all possible value of these score bands and connect the appropriate row(combination) to the fact table this seems like a complicated ETL solution .
Has anyone ever done something like that .
Ashish Mishra- Posts : 11
Join date : 2011-02-22
Re: Case for the having key of fact in another fact table
I would only load the actual combinations of the scores into the dimension table. I would not create a cartesian product of the various scores and load into a dimension table.
Jeff Smith- Posts : 471
Join date : 2009-02-03
Thanks for quick reply
Hi
thanks jeff for validating my asumption .
I have decided to go with approach where only valid combination will be kept.
Any obvious issues that i should be aware of before putting this design into motion. ??
thanks jeff for validating my asumption .
I have decided to go with approach where only valid combination will be kept.
Any obvious issues that i should be aware of before putting this design into motion. ??
Ashish Mishra- Posts : 11
Join date : 2011-02-22
Similar topics
» the master detail tables facts
» 'Routing' the grain of the fact table to multpile members of multiple dimensions causes the fact table to 'explode'
» Integrating new fact table which has one to many relationship with the main fact table in existing star schema
» How to create fact table with measures derived from comparing two fact table rows
» Healthcare Hospital Stay fact table - transaction fact table - a row for In and a row for Out?
» 'Routing' the grain of the fact table to multpile members of multiple dimensions causes the fact table to 'explode'
» Integrating new fact table which has one to many relationship with the main fact table in existing star schema
» How to create fact table with measures derived from comparing two fact table rows
» Healthcare Hospital Stay fact table - transaction fact table - a row for In and a row for Out?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum