OpenBI Docs Buy

ISFILTERED

Whether a column, or any column of a table, is filtered directly.

Group: Information. Compatible with DAX.

Syntax

ISFILTERED ( <TableNameOrColumnName> )
ParameterTypeDescription
TableNameOrColumnNameTable or columnA column, or a table: a table is filtered when any of its columns is.

Returns

Boolean. TRUE when a filter is set on the column itself, FALSE otherwise.

Remarks

  • Only direct filters count: a slicer or a visual's grouping on the column, a CALCULATE filter on it, or a filter over its whole table. A filter on a neighbouring column that merely narrows its values does not: ISCROSSFILTERED sees those.
  • A row context is not a filter: inside ADDCOLUMNS or FILTER it is FALSE until CALCULATE turns the row into a filter.
  • A filter that ALL or REMOVEFILTERS removes no longer counts.
  • TRUE says that something filters the column, not how many values are left: it can be TRUE with several values picked, and FALSE when only one value exists. Use HASONEVALUE for that, and ISINSCOPE to know whether a visual groups by the column.

Examples

Grouped by product, with a total

Each product's row filters the product column, and so its table; the category column is not filtered directly. The total row has no filter.

EVALUATE
SUMMARIZECOLUMNS (
    ROLLUPADDISSUBTOTAL ( Products[Product], "Total" ),
    "Product filtered", ISFILTERED ( Products[Product] ),
    "Category filtered", ISFILTERED ( Products[Category] ),
    "Products filtered", ISFILTERED ( Products )
)
ORDER BY [Total], Products[Product]
Products[Product]TotalProduct filteredCategory filteredProducts filtered
CiderFALSETRUEFALSETRUE
IPAFALSETRUEFALSETRUE
LettølFALSETRUEFALSETRUE
PilsFALSETRUEFALSETRUE
(blank)TRUEFALSEFALSEFALSE

A row context is not a filter

EVALUATE
ADDCOLUMNS (
    VALUES ( Products[Product] ),
    "In the row", ISFILTERED ( Products[Product] ),
    "After CALCULATE", CALCULATE ( ISFILTERED ( Products[Product] ) )
)
ORDER BY Products[Product]
Products[Product]In the rowAfter CALCULATE
CiderFALSETRUE
IPAFALSETRUE
LettølFALSETRUE
PilsFALSETRUE

ISCROSSFILTERED, ISINSCOPE, HASONEFILTER, FILTERS, ALLSELECTED.

Last updated · OpenBI Studio 0.3.74