Forum Discussion
Learning how to setup a Star Schema
- 3 years ago
Anonymous Well, in "proper" star schema design, your fact table really only contains columns that are used to relate to dimension tables and the actual fact (numbers) you wish to report on. The dimensional columns in this table repeat values. The dimension tables should only contain a single row for each dimensional identifier and thus these tables are the 1 side of the relationship and the fact table is the many (*) side of the relationship. So your dimension tables filter your fact table but not vice-versa.
The AdventureWorks database is a good example of a database setup to provide a star schema data model. Understand star schema and the importance for Power BI - Power BI | Microsoft Learn
The issue with this overall though is that rarely, if ever, in the real world that data can perfectly conform to a star schema. It's tough to tell from just an image of your data model, but it would appear to me that you have multiple fact tables involved and you are going to need to merge those into a single fact table for starters.
Anonymous Well, in "proper" star schema design, your fact table really only contains columns that are used to relate to dimension tables and the actual fact (numbers) you wish to report on. The dimensional columns in this table repeat values. The dimension tables should only contain a single row for each dimensional identifier and thus these tables are the 1 side of the relationship and the fact table is the many (*) side of the relationship. So your dimension tables filter your fact table but not vice-versa.
The AdventureWorks database is a good example of a database setup to provide a star schema data model. Understand star schema and the importance for Power BI - Power BI | Microsoft Learn
The issue with this overall though is that rarely, if ever, in the real world that data can perfectly conform to a star schema. It's tough to tell from just an image of your data model, but it would appear to me that you have multiple fact tables involved and you are going to need to merge those into a single fact table for starters.