I would like some advice regarding the following FACT table construction
2 posters
Page 1 of 1
I would like some advice regarding the following FACT table construction
I am a relative newcomer to Warehouse reporting. We have an OLTP system that I need to be able to transform into a Star and then use a Business Objects Universe to allow self-service reporting. The primary transaction log contains a number of amount fields that can be used as measures easily enough. The problem lies in that there is a 0,1 or Many relationship to a transaction detail log that also contains amount fields but not all that are contained on the transaction log. The best example I can think of is a purchase order that may be cash (no detail log records) or a payment where the department has 1 or more accounts to fund the purchase. The total for all the detail amounts equals the total amount on the transaction log.
What I need help on is understanding how to denormalize the structure from a reporting point of view.
I can solve with the ETL portion a check of the detail and if there is none, use the transaction log total amount but if there is detail rows, use those instead. My problem is how to manage the additional amounts (4 or 5) stored on the transaction log and not carried on the detail log. Trying to seperate out, divide and store the portion based on the number of details is not a good solution but I am not sure how to handle.
Thanks and please let me know if there is further clearification needed.
Greg
What I need help on is understanding how to denormalize the structure from a reporting point of view.
I can solve with the ETL portion a check of the detail and if there is none, use the transaction log total amount but if there is detail rows, use those instead. My problem is how to manage the additional amounts (4 or 5) stored on the transaction log and not carried on the detail log. Trying to seperate out, divide and store the portion based on the number of details is not a good solution but I am not sure how to handle.
Thanks and please let me know if there is further clearification needed.
Greg
amosgreg- Posts : 4
Join date : 2012-07-18
Re: I would like some advice regarding the following FACT table construction
You can build two fact tables with common dimensions.
On the BOBJ side, each star is a context (the fact table and its dimensions). If you need to combine measures from the two facts, BOBJ will correctly aggregate each fact individually then join on common attributes.
On the BOBJ side, each star is a context (the fact table and its dimensions). If you need to combine measures from the two facts, BOBJ will correctly aggregate each fact individually then join on common attributes.
Re: I would like some advice regarding the following FACT table construction
Thanks ngalemmo, you stated the following and I added numbers to help me understand.
1) If I build 2 Facts with common dimensions and the user picks to sum Transaction amount from both facts(2), then we will overstate since 1 Fact contains the details of the other.
2)I understand BO will aggragate but again it will overstate the amounts or counts.
Am I missing something or not understanding you on this point?
ngalemmo wrote:1) You can build two fact tables with common dimensions.
On the BOBJ side, each star is a context (the fact table and its dimensions). 2)
If you need to combine measures from the two facts, BOBJ will correctly aggregate each fact individually then join on common attributes.
1) If I build 2 Facts with common dimensions and the user picks to sum Transaction amount from both facts(2), then we will overstate since 1 Fact contains the details of the other.
2)I understand BO will aggragate but again it will overstate the amounts or counts.
Am I missing something or not understanding you on this point?
amosgreg- Posts : 4
Join date : 2012-07-18
Re: I would like some advice regarding the following FACT table construction
It will appear as two measures in the report. In the Universe you map each table individually. Each fact maps to different columns in different tables. BOBJ will not combine these. On the dimensions you have one instance of each table and you only need to define them once. When users pick attributes, BOBJ will know it is the same column on a table that is shared by both contexts, so it knows it can use it to combine (join) the measures from both facts.
Re: I would like some advice regarding the following FACT table construction
Thanks
I'll play with this and see how it works.
I'll play with this and see how it works.
amosgreg- Posts : 4
Join date : 2012-07-18
Similar topics
» Advice on Fact Table Design
» How to create fact table with measures derived from comparing two fact table rows
» Advice on a single Fact Table Column which could link to more than one different 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 to create fact table with measures derived from comparing two fact table rows
» Advice on a single Fact Table Column which could link to more than one different 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