Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Need Help on Row Leve Security

Need Help . Below is the DAX Expression I am using to see Data for Manager and his Team. I need to only see Team data and not the manager himself. PATHCONTAINS(Table[C_org Heirarchy], MaxX( Fi...
  • v-eachen-msft's avatar
    6 years ago

    Hi Anonymous ,

     

    You can add a filter condition.

    PATHCONTAINS (
        Table[C_org Heirarchy],
        MAXX (
            EXCEPT (
                FILTER ( Table, [Person_EmailAddress] = USERPRINCIPALNAME () ),
                FILTER ( Table, [Person_EmailAddress] = "Manager email address" )
            ),
            Table[Person_EmpID]
        )
    )