DAX (Data Analysis Expressions) is a formula language for Power BI that allows you to create custom calculations and measures.
Create year-over-year comparisons
Calculate cumulative values
Build interactive measures
Apply conditional logic
Changes filter context
Example: CALCULATE(SUM(Sales), YEAR = 2024)...
Iterator over table rows
Example: SUMX(Sales, Quantity * Price)...
Returns filtered table
Example: FILTER(Products, Price > 100)...
Removes filters
Example: CALCULATE(SUM(Sales), ALL(Products))...
Click New Measure
Descriptive name
Start with SUM or CALCULATE
For filter context changes
Use FILTER when needed
Set number format