5️⃣ DAX (Data Analysis Expressions) – Core Skill
DAX is the formula language of Power BI, Power Pivot, and Analysis Services Tabular. It is similar to Excel formulas but much more powerful because it works on tables and columns in a columnar in-memory database.
DAX is what turns your clean data model into actionable insights. Almost every interview for Power BI roles heavily tests DAX.
| Aspect | Calculated Column | Measure |
|---|---|---|
| Storage | Stored in the model (consumes RAM) | Calculated on the fly (no storage) |
| Context | Row Context (mainly) | Filter Context (mainly) |
| When to Use | When you need a value per row for slicing | For aggregations and dynamic calculations |
| Performance | Slower model, higher memory | Better performance |
| Row Level | Yes | No (unless iterated) |
| Examples | Profit = Sales - Cost, Full Name = First + Last | Total Sales, YoY Growth %, % of Grand Total |
Golden Rule:
Common Mistake: Creating calculated columns for simple aggregations (e.g., Total Sales column).
Measure Name = DAX Expression
Table[Column].// Single line or /* Multi-line */This is the most important and confusing concept in DAX.
Row Context: