![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Patrick, you should have the following three tables (one fact table and two dimension tables): Product PROD_ID PROD_NAME 1 ProA1 2 ProA2 3 ProB1 Company CMP_ID CMP_NAME PAR_CMP_ID 1 Companyname Null 2 CoA 1 3 CoB 2 4 CoC 3 FACT CMP_ID PROD_ID SALES 1 1 100.00 1 2 500.00 2 3 500.00 This should reflect the situation which you described (adding sales as a fact measure). It would imply that each part of the company can sell each product and that in turn each product can be sold by each company (many to many relationship). If a product is genuine to one part of the organization, you could as well create one dimension with product below organization. I you are using this design (or similar), you should not have the problem you described. HTH Lutz |
![]() |
| Thread Tools | |
| Display Modes | |
| |