Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
There is a table called "Emp_Info", and currently, the RLS DAX is being created using the following formula.
PATHCONTAINS(Emp_Info[Path],
MAXX(
FILTER(Emp_Info,
[Email] = USERPRINCIPALNAME()),
Emp_Info[EmpID]
)
)
When testing with the user "AAAAA@.com" with EmpID "123" in the above DAX, the result is as follows.
The situation is such that rows with the Path containing one's own EmpID are being retrieved.
However, what we want is the following result. For users with EmpID "123", they should be able to retrieve all information for their own department "Tokyo", and also retrieve all information for departments (Sydney and Paris) where their subordinates with EmpID "456/678/897" are located.
The diagram would look like this.
If we were to test with the user "HHHHH@.com" with EmpID "887", we would want the following result.
For users with EmpID "887", they should be able to retrieve all information for their own "Sydney" sales department.
Could you please advise on how to create a Row-Level Security DAX that displays the desired results based on the current DAX?
Best regards,
Lopez
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
27 | |
26 | |
23 | |
21 |
User | Count |
---|---|
57 | |
41 | |
24 | |
24 | |
21 |