Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

2 Fact tables

Hi All   Can anyone help me to figure out how to deal with 2 Fact tables, one being "actuals", and the other one being "forecast". Both tables I can link via Material+period, but for the forecast I...
  • DataInsights's avatar
    4 years ago

    Anonymous,

     

    It's best to keep fact tables separate instead of merging them. Each fact table should have relationships with dimension tables, resulting in a star schema. Typically, actuals has day grain and forecast has monthly grain. If this is the case with your data, create a calculated column in the forecast table that is a date (use the first day of the month). This will enable you to create a relationship between the forecast table and date table.