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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.