Learning Objectives
By the end of this chapter, you will be able to:
- Design and implement a star-schema data model and apply the CALCULATE function to redirect filter context.
- Configure table and column properties so the model behaves correctly in visuals, sorting, and time intelligence.
- Implement role-playing dimensions and reduce granularity to shrink Vertipaq footprint.
- Define cardinality and cross-filter direction on relationships and author semi-additive measures.
- Create a common date table marked for time intelligence and build measures with the quick measures dialog.
- Decide when a calculated column, a calculated table, or a measure is the correct DAX surface.
- Author single-aggregation measures, calculation groups, and statistical functions, and identify slow visuals with Performance Analyzer and DAX query view.
- Optimize model performance by removing unused columns, lowering granularity, and rewriting DAX hot paths.
Executive Summary
- A star schema with marked dimension tables and a single date dimension is the structural choice that drives every later optimization opportunity.
- CALCULATE is the only DAX function that can replace the current filter context with new arguments, which is why almost every non-trivial measure passes through it.
- Cardinality, cross-filter direction, and the "Is this relationship active" flag together determine which DAX patterns are legal and which silently return wrong totals.
- Performance Analyzer plus DAX query view replace guesswork in tuning; the storage engine versus formula engine split shows where rewrites pay off.
Assumptions
- Power Query is producing analysis-ready fact and dimension tables typed and keyed as described in the previous chapter.
- The reader is comfortable reading and writing DAX measures of moderate complexity and is on a current Power BI Desktop build.
- All examples assume the semantic model is in Import mode unless DirectQuery or DirectLake is explicitly called out.
