Forum Discussion
Data modelling with snowflake schema challenge
- 10 months ago
Hi selected_,
In Data Engineering or Dataflow Gen2, you can reshape the data model so that Power BI receives a clean, star-style structure. Some recommended options:
-
Flatten the Snowflake Schema
-
During data preparation, join sub-dimension tables (like Employees, CollClients, JobTypes, GroupProjects) into their parent dimensions (Clients and Projects). The output tables in your Lakehouse or Dataflow should be Projects, Clients, and Sales with clean surrogate keys.
-
-
Create a Bridge Table in Fabric
-
If Employees need to relate to both Clients and Projects, build an intermediate mapping table (e.g., EmployeeProjectBridge) using Data Engineering or Power Query inside Dataflow Gen2. This table can later serve as a relationship hub in Power BI.
-
-
Generate Surrogate Keys Upstream
-
Ensure that unique surrogate keys for dimensions are created in the dataflow or notebook, not just in Power BI, to simplify joins downstream.
-
By restructuring relationships in Fabric, Power BI will automatically get a clean, filterable model eliminating the duplicate or mismatched data issue seen in visuals.
Thanks,
Prashanth Are
-
Hi,
You may create an inactive relationship between the Employees and Projects tables and make it work with the help of measures and USERELATIONSHIP.
Thanks - Samrat
I was asking for somehitng I could do in the Data Engineering or in the Dataflow gen2 inside Fabric.
- v-prasare10 months agoCommunity Support
Hi selected_,
In Data Engineering or Dataflow Gen2, you can reshape the data model so that Power BI receives a clean, star-style structure. Some recommended options:
-
Flatten the Snowflake Schema
-
During data preparation, join sub-dimension tables (like Employees, CollClients, JobTypes, GroupProjects) into their parent dimensions (Clients and Projects). The output tables in your Lakehouse or Dataflow should be Projects, Clients, and Sales with clean surrogate keys.
-
-
Create a Bridge Table in Fabric
-
If Employees need to relate to both Clients and Projects, build an intermediate mapping table (e.g., EmployeeProjectBridge) using Data Engineering or Power Query inside Dataflow Gen2. This table can later serve as a relationship hub in Power BI.
-
-
Generate Surrogate Keys Upstream
-
Ensure that unique surrogate keys for dimensions are created in the dataflow or notebook, not just in Power BI, to simplify joins downstream.
-
By restructuring relationships in Fabric, Power BI will automatically get a clean, filterable model eliminating the duplicate or mismatched data issue seen in visuals.
Thanks,
Prashanth Are
-