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.


Macro: DAX Fundamentals

1. Calculated Columns vs Measures

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).

2. Basic DAX Syntax

Measure Name = DAX Expression

3. Row Context vs Filter Context (Evaluation Context)

This is the most important and confusing concept in DAX.

Row Context: