Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Count Distinct by Grouping

Hi, This is a very simple thing but I cant seem to get to the bottom of it.   I need to create a measure that gives me the count distinct by a grouping.   For example TableA Group   Attributes...
  • amitchandak's avatar
    4 years ago

    Anonymous , Try a measure 

    calculate(distinctcount(Table[Attributes]), filter(allselected(Table), Table[Group] = max(Table[Group] ) ) )