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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Kudoed Authors