Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello everyone, I have three tables:
- Sales (including a field called AgentID)
- ADUsers (picking up from the Active Directory Domain) where my agents are. There's a field called UserEmail.
- UserAgentID which I maintain: it has the AgentID and the UserEmail associated.
There's a relationship between the three of them. I would like to apply dinamically the AgentID filter on the Sales table depending on the AD user logged in PBI Service. How can I achieve this?
For example:
Sales Table
AgentID | Value |
123 | $ 150 |
456 | $ 200 |
789 | $ 75 |
ADUsers
UserEmail |
john.green@aaa.com |
mary.white@aaa.com |
tracy.brown@aaa.com |
UserAgentID
UserEmail | AgentID |
john.green@aaa.com | 123 |
mary.white@aaa.com | 456 |
tracy.brown@aaa.com | 789 |
If john.green@aaa.com logs in, I would like PowerBI to apply the filter "AgentID = 123" automatically in order to show only $ 150.
Many thanks,
Damiano
You need to use Row-level security (RLS) with Power BI. The conditions are set in Desktop mode and then permissions are given in PBI services (cloud).
Quick and simple to set up. Take a look at the following information. Essentially, you will create locked filters depending on the user accessing the dashboard at the time.
User A can only see Data with Filter A
User B can only see Data with Filter B
etc..
https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |