Forum Discussion

AlexanderRbt's avatar
AlexanderRbt
Icon for Helper I rankHelper I
4 years ago
Solved

Counting rows based on value on one column that is reference in another

  Hello   I have a table that contains managers and their employees. Employee name                Manager Name                  ID of managed team                   ID of my team ...
  • tamerj1's avatar
    tamerj1
    4 years ago

    AlexanderRbt 

    If my above assumption is true you may try something like 

    Count =
    CALCULATE (
        COUNTROWS ( TabeName ),
        TREATAS ( VALUES ( TabeName[Manager Name] ), TabeName[Employee Name] ),
        REMOVEFILTERS ( TabeName )
    )

    you may try it with or without the REMOVEFILTERS part