Forum Discussion
Anonymous
6 years agoNot 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( Fi...
- 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] ) )
v-eachen-msft
6 years agoCommunity 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]
)
)Anonymous
6 years agoNot 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]
)
)
- Anonymous6 years agoNot 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