Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

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(
Filter(
Table,
[Person_EmailAddress]=USERPRINCIPALNAME()
)
Table[Person_EmpID]
)
)

 

 

I have a calculated column forC_org_Hierarchy

C_org Heirarchy = PATH(Table[Person_EmpID],Table[Person_Reports_to_EmpID])

 

 

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

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]
    )
)
Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

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]
    )
)
Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

 you for that.However ,  get an error msg : "Too many Arguments were passed in MAXX"

 

Below is how my expression looks

 

PATHCONTAINS(Table[C_org Heirarchy],
MaxX(
EXCEPT(
Filter(
Table,
[Person_Corp_EmailAddress]=USERPRINCIPALNAME()
|| [Person_EmailAddress]=USERPRINCIPALNAME()
),
FILTER ( Table, [Person_EmailAddress] = Table[Person_ReportsTo_Email])),
,Table[Person_EmpID]
)
)

 

 

Anonymous
Not applicable

This is not helping because Person_EmailAdress  = Persons Manager email address

will not eliminate the manager as he will show up under his manager's name so they will not match

 

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Solution Authors