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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Dynamic RLS using UPN based on multiple values

Dear forum,

 

I'm hoping you can get me kicked of again.

For a company dashboard I'm looking to give dynamice RLS using UPN based on multiple values.

 

I have 2 tables.

Table 1 - Containing a list of users and what they can see. 

RLS Setup.png
a@x.com
 can see all information from Company A, limited to Work Location 1.How to read this table?

b@x.com can see all information of Company A

d@x.com can see all information of all companies and work locations but only the information of Functions X and Y.

etc.

 

Table 2 - List of positions in our company

POS Setup.png


What I want to achieve is that the visibility in the dashboard is limited to what they are entitled to see. This should result in the following:

visibility.png

 

 

How can this be set up in a dynamic way using UPN? If so, how?

 

 

Thanks in advance!

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , The last table seems like one you can use in RLS.  You need to have the position ID (if that alone can work) else concatenate fields and have the key in this table and another table.

 

Split the email ids into rows in power query  into rows

https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

 

Then you can join this table based on position id or combined column with table toy want to secure 

 

In role add

[email id] = userprinicpalname()

 

How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk

 

https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello @amitchandak ,

Thanks for the quick response.

 

The last table is one I've made manually in excel for reference and good understanding. If I would be able to use this setup, how can this be achieved this table in PBI?

 

Many thanks in advance for your help.

Kind Regards.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 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.