Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

DISTINCTCOUNT

Hi Can someone help me understand the result in the lowest visual? Why does the Tbl[Name] rows not form Filter context to make [#Name with M] zero on all other lines than the two starting with "M"?...
  • vapid128's avatar
    vapid128
    4 years ago

    All you need to do is change your boolean expression to filter table.

     

    Calculate(

        distinctcount('Tbl'[name[),

        filter('Tbl'[Name],LEFT ( Tbl[Name], 1 ) = "M")

    )