Sales for everything except one category with <> and NOT

Total up every category except Bikes with a not-equal filter, and see why subtracting one measure from another is not quite the same.

You will learn to

  • Exclude a value with <> inside CALCULATE
  • Exclude several values with NOT … IN { }
  • Explain why “total minus one part” can show 0 where a filter shows blank

How it works

Sometimes it’s easier to say what you **don’t** want. A CALCULATE filter can use `<>` (not equal): `Customer[Region] <> "West"` keeps North, South and East.

To leave out several values at once, wrap an `IN` list in `NOT`: `NOT Product[Color] IN {"Red", "Black"}` keeps every other color. It works like any other column filter, so it still replaces an existing filter on that same column.

You could also take the total and subtract the part you don’t want. The numbers mostly agree, but not everywhere: where nothing is left, a filter returns **blank** (and Power BI hides the row), while a subtraction returns **0**.

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

Not Red or Black Sales = CALCULATE([Total Sales], NOT Product[Color] IN {"Red", "Black"})