Forum Discussion

RMDNA's avatar
RMDNA
Solution Sage
9 years ago
Solved

Measure: FILTER([value] is not blank

I'm trying to create a measure where I can reference a pre-filtered value. It will end up being a %, but for simplicity:   Measure = CALCULATE(DISTINCTCOUNT('TABLE'[Value]),FILTER('TABLE','TABLE'[V...
  • Sean's avatar
    Sean
    9 years ago
    Measure =
    DIVIDE (
        CALCULATE (
            DISTINCTCOUNT ( 'TABLE'[Value] ),
            FILTER ( 'TABLE', 'TABLE'[VALUE] <> BLANK () )
        ),
        DISTINCTCOUNT ( 'TABLE'[VALUE] ),
        0
    )