Cheat Sheets/Power BI/CALCULATE
DAX function

CALCULATEDAX function reference

Evaluate with modified filters.

Syntax

dax
CALCULATE(<expression>, <filter1>, <filter2>, …)

Examples

dax
CALCULATE(SUM(Sales[Amount]), Sales[Region] = "West")
A number

The classic percent-of-total pattern: CALCULATE with ALL() clears filters to get the denominator.

dax
VAR RegionSales = SUM(Sales[Amount])
VAR TotalSales = CALCULATE(SUM(Sales[Amount]), ALL(Sales))
RETURN DIVIDE(RegionSales, TotalSales)
This region's share of the grand total

Multiple filter arguments are combined with an implicit AND.

dax
CALCULATE(SUM(Sales[Amount]), Sales[Region] = "West", Sales[Year] = 2026)
West region, 2026 only

Common mistakes & gotchas

Related DAX functions

From Filter context

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet