Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Test as role - connected raport


is it posible to test a role on connected raport in service. By default, role testing is run on a report created with the model. Can I change the report connected to the data model somehow?

Community Support
Community Support

HI @Lokisame,

AFAIK, RLS is a role-based row-level filter. You can change the assigned roles then users will view correspond contents filtered by the lastest role.

In addition, you can also consider configuring a dynamic RLS role based on the user name or other dynamic functions. (e.g. username, today...) They will extract the specific value based on the current user or system DateTime and apply the filter on it.

RLS with UserName() 

BTW, if your data source is AS tabular, you can also configure RLS filter on your database side:
Implement row-level security in an Analysis Services tabular model 

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Stay away from Username(), it behaves differently on the Desktop and the service. Always use UserPrincipalName().

Super User III
Super User III

So you are saying you have a workspace with a dataset and two reports that are based on the dataset.  Now you want to test the dataset's RLS against the second report?  Did I get that right?


Helpful resources


Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors