Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Virtual Connection Between Two Fact Tables

Hi! My model will not let me do a physical relationship between two fact tables and I need thus to do a virtual connection.  I am working with sales data and need to understand what order number (f...
  • McDermoW5's avatar
    4 years ago

    Hi,

     

    I'd actually advise you use the Fact Sales table as a central table. This makes the model simpler. First go to Home / Modelling (depending on what view you're looking at) > Manage relationships. This shows all the relationships in your model as a list so just de-select the relationship between 'Fact_Inventory' and 'Dimension_Item'. Then click New..., select the tables from the drop downs, click on the [item_key] columns, ensure the "Make this relationship active" box is ticked then press "Okay".

    If you need to use something closer to the model you have now, you could also do the same but have the relationship between Fact_Inventory and Fact_Sales as inactive and use the USERELATIONSHIP() function here on columns or measures that need it.

  • PaulDBrown's avatar
    4 years ago

    Can you provide a depiction of the expected outcome please?