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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Extract data with RLS applied

Hi all - 

 

I have set up RLS and published to the service, but when i test the role and export data, the data export contains all rows and not just the Org that i have the filter set on. For example, if my Org is India, the visual shows only data related to India but the export in .XLS format contains rows related to all countries and not just India. Does anyone know why this happens? Is it a known bug that is being worked on?

This defeats the purpose of RLS if they are able to export all underlying data although i have specified only to export summarized data.

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

If you are in "test as role" model, RLS doesn't apply for this report when you export data.

But in the actual scene, RLS works well.

and here is a same post for you refer to:

https://community.powerbi.com/t5/Issues/RLS-security-does-not-apply-on-exported-data-when-tested-by-...

"This is by design. It is just to test the role but not to apply the same filter for exporting."

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

If you are in "test as role" model, RLS doesn't apply for this report when you export data.

But in the actual scene, RLS works well.

and here is a same post for you refer to:

https://community.powerbi.com/t5/Issues/RLS-security-does-not-apply-on-exported-data-when-tested-by-...

"This is by design. It is just to test the role but not to apply the same filter for exporting."

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Ok thanks, but i realized this was not the solution in my case so i want to make everyone aware. If your user has a "viewer" role, please also ensure that you assign them "Build" permission by going to "manage permissions" in the dataset. Only once they have this permission will you see that they are able to export data. Without this permission set, they will not be able to export data. Once you set the build permission, theyshould be able to get data from the dashboard.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.