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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Kashinoda
Advocate I
Advocate I

Restrict Column Access with RLS - Almost there but some annoyances.

Hi All,

 

I have a Sales table which contains a SalesDescription, a small number of these descriptions are confidential - though everyone should be able to see additional sales information (SalesNumber, SalesAmount etc.)

 

I pulled the SalesDescription field into a new table, added a ConfidentialFlag column and added an RLS role 'Everyone' which allows all users to see the description where ConfidentialFlag = "N". Another RLS role uses a lookup table which allows certain users to see confidential descriptions.

 

My issue is when viewing a report as 'Everyone' role, the SalesAmount does not show where rows from the confidential table are blocked. Interestingly this does NOT happen on older PowerBI versions (e.g. Oct 2017) but does happen on the latest desktop and PowerBI Online.

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Kashinoda
Advocate I
Advocate I

Managed to solve it by making the relationship between DimSales and FactSalesConfidential inactive then using a measure to return the description instead.

 

 

View solution in original post

4 REPLIES 4
Kashinoda
Advocate I
Advocate I

Managed to solve it by making the relationship between DimSales and FactSalesConfidential inactive then using a measure to return the description instead.

 

 

Hi 

I have similar situation where I need to hide column data based on users, but I have to hide whole column data for specific users.

Can you please help how to acheive this

shebr
Resolver III
Resolver III

Hi @Kashinoda

 

Can you provide the screenshot of your role formula? It seems to be doing what I expect it to be doing, not sure what you are trying to achieve exactly here? Have you added the 'regular' user to the role memebership or not?

 

Thanks

 

 

Hi @shebr

 

Sorry by regular user I mean the 'Everyone' role, I've updated the original post to include the output from an older PowerBI version (which is what I want). Here is the role, very simple:

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.