Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Add Count Column

I need to create a new column where I can get the Count of reservationId per clientId. I have reservationId and clientId, reservationId is distinct. I create a table to get count of reserva...
  • v-jingzhang's avatar
    v-jingzhang
    5 years ago

    Hi Anonymous 

     

    It should be 

    T.Count = COUNTX (FILTER ( 'public Reservations', [clientId] = EARLIER ( [clientId] ) ),[reservationId])

     

    Take care of pairs of parentheses. One ")" in your DAX formula just isn't at the correct position.  

     

    Best Regards,
    Community Support Team _ Jing