Forum Discussion

Hanspw's avatar
Hanspw
Helper I
5 years ago
Solved

Recommended table setup

Hi.   I wonder if someone have some tips for best practice for seting up my datamodel.   I have one main fact table with connected dim tables (fact_table1). Hovever some of the transactions in th...
  • belvoir99's avatar
    5 years ago

    Sounds like you've got the right idea here. Separate out dimension tables from fact tables. Link them with keys (foreign and primary key). Share the dimension tables with the fact tables. Eg. dim x is linked to fact a and fact b using the same key, using 1:M relationships. Then you can group and slice using the dimension column.

    You should avoid M:M relationships between fact tables. Performance will be poor. If you design the model well, you shouldn't need that relationship.

    For simplicity, where the granularity of the data is different, you should separate the datasets into separate fact tables. If the summary data is simply a summary of one of the fact tables, you should (if size/performance allows) remove the summary data and just use DAX and/or the filtering on the visuals to group the data.

    Spend time getting the model right. This will save you many hours of frustration and grief later on. Talk to the business/end users about what they want. Can you capture that with your model?