Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How do I avoid to count the empty value?

Hi,   I want to count how many types in the table below:   Name Type A 1 B 2 C 2 D 1 E     I used the code following:  Type(#) = IF(ISBLANK(DistinctCount(Sheet1[T...
  • ddpl's avatar
    4 years ago

    Hi, Anonymous 

     

    There is a function called DISTINCTCOUNTNOBLANK which avoid count blank value.

     

    So to count of Type, just write a measure DISTINCTCOUNTNOBLANK( Table[Type] )

     

    Hope it will work for you.

  • Anonymous's avatar
    Anonymous
    4 years ago

    Thank you!