The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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.