Change the filter with CALCULATE
Show bike sales next to total sales in every region — CALCULATE rewrites the filter for just that measure.
You will learn to
- Change a measure’s filter with CALCULATE
- Write a simple column filter
- Predict how CALCULATE combines with a visual’s filters
How it works
`CALCULATE(expression, filter)` evaluates an expression under a **changed** filter.
A filter can be a simple condition on one column: `Product[Category] = "Bikes"`. Text goes in double quotes.
The new filter is added on top of what the visual already filters — so in the North row it means “North **and** Bikes”.
Practice it hands-on with a real data model and a live report that updates as you type.
Red Sales = CALCULATE([Total Sales], Product[Color] = "Red")