Several filters at once: commas and IN

Give CALCULATE more than one condition, and match a list of values with IN, to answer “how much gear did consumers buy?”.

You will learn to

  • Combine several CALCULATE filters (they must all be true)
  • Match any value from a list with IN { }
  • Filter columns from two different tables in one measure

How it works

`CALCULATE` accepts as many filters as you like, separated by commas. Every filter must be true at the same time, so commas mean **and**: `Product[Category] = "Bikes", Customer[Segment] = "Business"` is bikes sold to business customers.

To allow **any** of several values in one column, list them with `IN { }`: `Product[Color] IN {"Red", "Blue"}` keeps red products and blue products.

A common slip is `Product[Category] = "Accessories" && Product[Category] = "Clothing"`. No product is in both categories at once, so the result is blank. When you mean “this one or that one” in the same column, reach for `IN`.

Practice it hands-on with a real data model and a live report that updates as you type.

Red or Blue Bikes = CALCULATE([Total Sales], Product[Category] = "Bikes", Product[Color] IN {"Red", "Blue"})