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.
I have a data table like :-
id | engineer | tester | manager |
1 | 10 | 20 | 15 |
1 | 20 | 30 | 10 |
2 | 15 | 10 | 20 |
3 | 20 | 10 | 30 |
4 | 10 | 10 | 25 |
5 | 30 | 20 | 35 |
1 | 40 | 30 | 30 |
2 | 15 | 30 | 10 |
4 | 50 | 30 | 15 |
4 | 5 | 45 | 20 |
I am applying Dynamic Row Level Security to my Power Bi reports and using that I am filtering the report based
on the logged in user which I am getting using USERPRINCIPALNAME() parameter.
I want to apply some more dynamic filters in my report but it is not based on USERPRINCIPALNAME(),
Is it possible to create a custom parameter and pass it to the reports and filter the report accordingly (in both power bi Desktop
and power bi Service).
Like CUSTOMPARAMETER = 'Engineer'
So the output becomes :-
id | engineer |
1 | 10 |
1 | 20 |
2 | 15 |
3 | 20 |
4 | 10 |
5 | 30 |
1 | 40 |
2 | 15 |
4 | 50 |
4 | 5 |
Similar output should be there for Tester and manager that is based on the value of the custom parameter we should be able to
see the data.
Hi @mohit_K ,
According to the official document,Row-level security (RLS) with Power BI can be used to restrict data access for given users. Filters restrict data access at the row level,So ,it can’t be used Column level security.
https://ideas.powerbi.com/ideas/idea/?ideaid=3c6dd5d0-a2f9-44ae-a213-3a8c0d14dfd0,and you could vote for it.
Or, There are workarounds that might be able to assist. Check out this blog post on it
Another idea is transpose the columns to rows in Power Query first, and then set the roles.
Reference:
https://www.bluegranite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |