Study FAQ
How should fact and dimension tables work together in a Power BI semantic model?
Also asked as 2
- What roles do facts and dimensions play in a Power BI semantic model?
- How does a star schema make Power BI measures and filters consistent?
Answer
Use dimension tables to filter and group, fact tables to store observations at a consistent grain, and explicit measures to summarize those observations. A normal star-schema path is a unique dimension key filtering repeated foreign keys on the fact side of a one-to-many relationship.
For example, Product and Customer can both filter an order-line Sales fact. A monthly Inventory snapshot belongs in a separate fact because its grain differs. Reuse conformed dimensions to analyze both facts; joining facts directly can multiply rows or constrain reporting paths.
The semantic model should expose the prepared data's meaning:
- Give tables, attributes, and measures business-facing names and descriptions.
- Hide relationship keys that aren't useful reporting fields, and set appropriate formats and default summarization.
- Use hierarchies with a valid drill path and a governed Date dimension when consistent calendar or fiscal analysis is required.
- Centralize business calculations in explicit measures so report authors use the same definition.
Validate an unfiltered fact total against a trusted source total, then apply one and two dimension filters and verify the expected intersection. Storage mode changes how data is retrieved; it cannot correct a wrong grain or ambiguous relationship.
Full explanation
DP-600: Designing Power BI Semantic Models and Relationships in Microsoft Fabric
Study guide · DP-600
Read the full explanation