Connect two fact table
2 posters
Page 1 of 1
Connect two fact table
I have two fact tables with different grain but the part of keys of both fact tables are the same.
For example 1 table have data grain that have document and accounting items and the other
fact table have document and hospital processes.
Now i want to get data from both tables that are conected via document. What is the principle of modeling? Is it better to have some
data in both tables or connect these tables to get all data that we needed.
Thanks in advance, KM
For example 1 table have data grain that have document and accounting items and the other
fact table have document and hospital processes.
Now i want to get data from both tables that are conected via document. What is the principle of modeling? Is it better to have some
data in both tables or connect these tables to get all data that we needed.
Thanks in advance, KM
MK- Posts : 16
Join date : 2013-02-04
Location : Slovenia
Connect two fact tables
You should have Document as a dimension in you data model. Two fact tables 1 for accounting items and other for hospital processes. Get the summary for accounting items and hospital processes independently for document dimension and then merge the results. when you want to see data with more details use more common dimension like document and date dimension.
rathjeevesh- Posts : 15
Join date : 2013-02-16
RE: connect two fact tables
Hi,
Thanks for replay and your advices. I have yust 1 more question. What if document details repeted in each fact table?
Dimension of Document looks to me quite big and then connect these tables together...will not cause performance problems?
Thanks in advance, KM
Thanks for replay and your advices. I have yust 1 more question. What if document details repeted in each fact table?
Dimension of Document looks to me quite big and then connect these tables together...will not cause performance problems?
Thanks in advance, KM
MK- Posts : 16
Join date : 2013-02-04
Location : Slovenia
RE: connect two fact tables
"document details repeated in each fact table" you mean to say currently document details is stored as textual fact? or you have document ID, type, description like columns. If details are descriptive then are you planning to join the two facts based on a varchar2 (2000) kind of a column?
My second opinion will be to verify the grain of you fact tables, check if they can be put as a single fact so that you do not have to join every time.
My second opinion will be to verify the grain of you fact tables, check if they can be put as a single fact so that you do not have to join every time.
rathjeevesh- Posts : 15
Join date : 2013-02-16
RE: join two fact table
Thanks for replay, in previous mail I do not gave all informations. Fact tables are connect via document number.
Then I have a lot of metrics in both tables, which I need it on the report. Because tables are connect one to many (a table of accounting deatails have many records in process fact table. Metrics from first table then must be repeted if there a more rows in the second table. How are you connect cases like this. We use olap tool - microstrategy.
Thanks in advance, KM
Then I have a lot of metrics in both tables, which I need it on the report. Because tables are connect one to many (a table of accounting deatails have many records in process fact table. Metrics from first table then must be repeted if there a more rows in the second table. How are you connect cases like this. We use olap tool - microstrategy.
Thanks in advance, KM
MK- Posts : 16
Join date : 2013-02-04
Location : Slovenia
Similar topics
» should I connect the dimensions or the bridge to fact table?
» How do I connect fact tables for drill down
» What is the proper way to connect a periodic snapshot table to a date dimension?
» '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 do I connect fact tables for drill down
» What is the proper way to connect a periodic snapshot table to a date dimension?
» '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
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum