Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Good morning,
I have an application where the source database contains multiple fact tables that share common dimensions. For example:
Dimensions:
Facts:
I have tried to use Generic Keys but I cannot get the desired solution, I am not even sure if I am following them quite correctly.
Can you suggest how best to resolve this so that each fact table is correctly associated with just the relevant dimension table?
Thanks
Hi,
You need to create Link table for facts with composite key and concatenate all the facts in link table and link table will link to your dimension table.
for more understanding can you post some sample data.
Thanks & Regards,
Neha
Hi Neha ,
Please find the attached data sample
Thanks
Try to join tables with each others
Both of the above answers are correct but you should decide on the best data model structure for your scenario.
and test the model if you are getting correct information.
Agreed!
Here is the link model out of interest, this is how I personally would do it anyway!
Please find the attached and check this works.
I feel Adam's Model is more precise as its more flexible when new table needs to be added