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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.