Microsoft - Power BI Data Analyst Associate Study Guide

    2: Model the data

    This chapter turns the fact and dimension tables produced by Power Query into a working analytical semantic model. Table and column metadata, relationship design, a single conformed date table, DAX measures from simple aggregations through CALCULATE and time intelligence, calculated columns versus calculated tables, calculation groups, and Vertipaq-aware optimization work together to produce a model that answers business questions correctly and refreshes within report SLAs.

    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.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account
    5. Free with account
    6. Free with account
    7. Free with account
    8. Free with account
    9. Free with account