Forum Discussion

_Alex_'s avatar
_Alex_
New Member
7 years ago
Solved

DAX Help: Unique count by row

Suppose I have a dataset as follows:   Car_ID    Owner_Name  Number_of_Owners 1             Adam               3 1             Bob                  3 1             Carrie               3 2     ...
  • Greg_Deckler's avatar
    7 years ago

    As a column:

     

    Number of Owners = 
    VAR __table = FILTER(ALL('Table',[Car_ID]=EARLIER([Car_ID]))
    RETURN COUNTROWS(__table)