Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

DISTINCTCOUNTNOBLANK Function

  From the documentation, DISTINCTCOUNTNOBLANK Function, this function is supposed to take a column as a parameter. However, upon trying to use this function, it cannot recognize my column. (Red und...
  • v-juanli-msft's avatar
    7 years ago

    Hi Anonymous 

    As tested, when use this function in a measure, it's result seems incorrect.

    As a workaround, create a measure as below

    Measure 2 = CALCULATE(DISTINCTCOUNT(Table1[letter]),FILTER(ALL(Table1),Table1[letter]<>BLANK()))

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.