Forum Discussion

passants's avatar
passants
Frequent Visitor
4 years ago
Solved

Calculated column which can evaluate other rows in the table with the same value?

Hello, I am working on an issue where I think I understand the logic behind what needs to happen, but I am not sure of the DAX to make it work.    Here is some example data: Person ID Year ...
  • amitchandak's avatar
    4 years ago

    passants ,

    new column

    = var _cnt = countx(filter(Table, [Person ID] = earlier([Person ID] ) && [Year] = earlier([Year] ) +1) , [Person ID])

    return

    if(isblank(_cnt), false() , true())