Forum Discussion

olimilo's avatar
olimilo
Icon for Post Prodigy rankPost Prodigy
6 months ago
Solved

How to exclude blanks from decomposition tree?

The data for this chart is in tabular (pivoted) layout. For the Non-manufacturing and Services categories, the subcategories will always be blank. Is there a way to keep the (Blank) category from dis...
  • cengizhanarslan's avatar
    6 months ago

    Could you try the measure below?

    Tree Count =
    VAR _activity =
        SELECTEDVALUE ( 'Table'[Facility Activities] )
    RETURN
        IF (
            ISINSCOPE ( 'Table'[Produce] )
                && _activity <> "Manufacturing",
            BLANK(),
            DISTINCTCOUNT ( 'Table'[ID] )
        )