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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Shadaiv
Helper II
Helper II

Implementing Row level Security to hide sensitive data

Hi all,

Would appreciate your help in this. 

 

We have a matrix where under the rows section we have below columns

City Name

Branch Name  

Employee Name

 

and under the Value Section We have

Total Leave

Sick Leave

Annual Leave

 

All the above fields are from a single flat table.

 

The requirement is out of 50 users 10 users should see the data for all the rows ( City Name , Branch Name,Employee Name)

but other 40 users should see data only for ( City Name , Branch Name). In other words, they should not see Data at Employee Name Level.

 

Please advise any easy way to implement this security.

2 REPLIES 2
Anonymous
Not applicable

Hi @Shadaiv 

You may refer to this video to learn how to create Row Level Security with hierarchies.

For reference:

Row Level Security With Hierarchies

Dynamic Row Level Security with Organizational Hierarchy Power BI

 

Best Regards,
Rico Zhou

 

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

selimovd
Super User
Super User

Hey @Shadaiv ,

 

you can create specific roles and map them to each user:

Row-level security (RLS) with Power BI - Power BI | Microsoft Docs

 

Also you could create a table with all the users and the access they have and then dynamically filter with the USERPRINCIPLENAME function:

Dynamic Row Level Security with Profiles and Users in Power BI : Many-to-Many Relationship - RADACAD

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.