Show a value only on detail rows with ISFILTERED

Blank out a percent that makes no sense in the total row by testing whether Region is filtered with ISFILTERED — and how it differs from HASONEVALUE.

You will learn to

  • Tell detail rows from the total row with ISFILTERED
  • Explain the difference between ISFILTERED and HASONEVALUE
  • Switch a measure’s behavior based on its filter context

How it works

`ISFILTERED(Customer[Region])` is true when the Region column itself is filtered: a region row of a matrix, or a Region slicer. In the total row nothing filters Region, so it’s false. Pair it with `IF` to switch behavior: one result for detail rows, another (or blank) for the total.

`HASONEVALUE(Customer[Region])` asks something subtly different: “is only one region visible?” That is also true when you filter a **single customer**, because one customer lives in one region, even though Region itself was never filtered.

Choose by the question. If the number only makes sense when someone picked a region on purpose, use ISFILTERED.

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

Segment Label = IF(ISFILTERED(Customer[Segment]), "One segment", "All segments")