Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
mohit_K
Helper I
Helper I

Dynamically FIltering Data Based on Custom Parameter

I have a data table like :-

idengineertestermanager
1102015
1203010
2151020
3201030
4101025
5302035
1403030
2153010
4503015
454520

 

 

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 :-

idengineer
110
120
215
320
410
530
140
215
450
45

 

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.

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors