Detect any filter on products with ISCROSSFILTERED
Show how many products are in view whenever anything narrows the product list, using ISCROSSFILTERED instead of ISFILTERED.
You will learn to
- Tell ISFILTERED and ISCROSSFILTERED apart
- Predict which filters reach a column through the model
- Build a status note for a report
How it works
`ISFILTERED(column)` is TRUE only when that exact column is filtered. A filter on Category doesn’t count for `ISFILTERED(Product[Product])`, even though it hides eight of the twelve products.
`ISCROSSFILTERED(column)` is TRUE when the column’s visible values are affected by **any** filter: on the column itself, on another column of the same table, or on a table that filters it through a relationship.
Relationships only filter one way, from the one side to the many side. So a Region filter reaches Sales, but not Product: `ISCROSSFILTERED(Product[Product])` stays FALSE under a Region filter. That makes ISCROSSFILTERED a reliable way to ask “has the list of products been narrowed down?”.
Practice it hands-on with a real data model and a live report that updates as you type.
Customer Note = IF(ISCROSSFILTERED(Customer[Customer]), "Some customers", "Every customer")