Forum Discussion

aflintdepm's avatar
aflintdepm
Helper III
2 years ago
Solved

Count Rows on another table based on attributes on main table

I have 2 tables, one is a list of employees with employment status and the other is a list of tasks assigned to those employees with the task status.  Everthing is linked by EE_ID, but I did have to ...
  • Samarth_18's avatar
    2 years ago

    Hi aflintdepm ,

     

    You could use below measure - 

     

    Measure =
    COUNTROWS (
        FILTER (
            'Task table',
            'Task table'[EE_ID] = MAX ( EE_Status[EE_ID] )
                && 'Task table'[Task_Status] = "Incomplete"
                && MAX ( EE_Status[Status] ) = "Terminated"
        )
    ) + 0

     

    output -