Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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])
Solved! Go to Solution.
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] ) )
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] ) )
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]
)
)
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
User | Count |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
114 | |
98 | |
96 | |
68 | |
67 |