Cheat Sheets/Power BI/ISINSCOPE
DAX function

ISINSCOPEDAX function reference

True if a column is a grouping level.

Syntax

dax
ISINSCOPE(<column>)

Examples

dax
ISINSCOPE(Sales[Region])
true / false

ISINSCOPE checks matrix/hierarchy row grouping levels, so check the most granular level first.

dax
SWITCH(
    TRUE(),
    ISINSCOPE(Product[SubCategory]), "Sub-category level",
    ISINSCOPE(Product[Category]), "Category level",
    "Grand total"
)
Labels each level of a Category/SubCategory hierarchy in a matrix
dax
IF(ISINSCOPE('Date'[MonthName]), [MoM Growth %], BLANK())
Only shows month-over-month growth when the matrix is expanded to the month level

Common mistakes & gotchas

Related DAX functions

From Filter context

← Back to the Power BI (DAX) cheat sheet