DAX (Data Analysis Expressions) is a functional formula language developed by Microsoft for data modeling and analytical calculations in Power BI, Excel Power Pivot, and SQL Server Analysis Services (and Azure Analysis Services / Microsoft Fabric). Unlike traditional spreadsheet formulas, DAX operates on tables and columns rather than cell references, enabling dynamic aggregations that automatically respond to filter context. The key to DAX mastery lies in understanding evaluation contexts: filter context (what's being filtered), row context (iterating through rows), and context transition (how CALCULATE bridges the two) β once you grasp these three concepts, even complex DAX patterns become intuitive. In 2025β2026, DAX gained two landmark features: user-defined functions (the biggest language change since variables) and calendar-based time intelligence for non-Gregorian calendars.
What This Cheat Sheet Covers
This topic spans 29 focused tables and 257 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
Table 1: Core Calculation Types
The four building blocks of DAX define where calculations live and when they are evaluated. Choosing the wrong type is the most common beginner mistake β especially confusing measures (dynamic, context-aware) with calculated columns (static, row-level, stored in the model).
| Type | Example | Description |
|---|---|---|
Total Sales = SUM(Sales[Amount]) | β’ Dynamic calculation evaluated in filter context β’ recalculates on every slicer/filter/visual selection β’ does not add to model size β the preferred default. | |
Profit = Sales[Revenue] - Sales[Cost] | β’ Static row-level calculation evaluated in row context β’ computed once during refresh, stored in model β’ increases file size β prefer measures or Power Query when possible. |