Fact one to one relationship with Dim
3 posters
Page 1 of 1
Fact one to one relationship with Dim
I’ve faced the following situation several times and I’ve never been sure what the correct approach is, so I thought it time to check.
With a data source that revolves around a particular entity, say a Case, I build event or history based Facts and the corresponding dimensions as expected. However 90% of the reporting requirements are operational and need to report detail on the Case(s) as at now and not the events, or history, or any kind of measure.
For this purpose the granularity of the Facts is not needed and would slow down queries. The Case dimension has attributes, free text, dates etc and could easily have dimension keys to all of the other dimensions but if I put them in there then it’s going to look like they’ve been snowflaked and because there are free text fields needed for reporting I can’t simply the Case Dimension.
Should I create a Case Fact with all of the dimension keys that would become the hib of most of our reporting and would have a one to one relationship with the Case Dim which contains all the rest?
Thanks
With a data source that revolves around a particular entity, say a Case, I build event or history based Facts and the corresponding dimensions as expected. However 90% of the reporting requirements are operational and need to report detail on the Case(s) as at now and not the events, or history, or any kind of measure.
For this purpose the granularity of the Facts is not needed and would slow down queries. The Case dimension has attributes, free text, dates etc and could easily have dimension keys to all of the other dimensions but if I put them in there then it’s going to look like they’ve been snowflaked and because there are free text fields needed for reporting I can’t simply the Case Dimension.
Should I create a Case Fact with all of the dimension keys that would become the hib of most of our reporting and would have a one to one relationship with the Case Dim which contains all the rest?
Thanks
bfnz- Posts : 4
Join date : 2014-07-10
Re: Fact one to one relationship with Dim
Maybe a dimensional model is not appropriate for your use case. Dimensional models are optimized for mass analytic queries against a population. The rarely involve free-form text because you are doing summaries or trends of large numbers of events. An application that supports queries of a specific item are best served by a normalized model. That is what an ODS is for.
Re: Fact one to one relationship with Dim
Thanks, I've kind of always thought that myself too. I work in a government city and all the government departments have data and reporting requirements like this, much more so that you'd get in the private sector I think. The trouble is they all want a Kimball dimensional data warehouse, even though they aren't always sure what that is.
bfnz- Posts : 4
Join date : 2014-07-10
Re: Fact one to one relationship with Dim
YOu can combine the DM and ODS approach: query your DM to find all Cases that meet the selection criteria and then drill through to your ODS to show the detail of that subset of Cases
nick_white- Posts : 364
Join date : 2014-01-06
Location : London
Similar topics
» Integrating new fact table which has one to many relationship with the main fact table in existing star schema
» Fact Table - Relationship
» Fact 1:1 relationship with dimension
» map M-M relationship between two fact tables
» Aggregation of FACT during Many to Many relationship
» Fact Table - Relationship
» Fact 1:1 relationship with dimension
» map M-M relationship between two fact tables
» Aggregation of FACT during Many to Many relationship
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum