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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Som_17
New Member

Managing Roles

Hello!

 

I have 3 tables:

1. Employees: where I have the email address, employee code, agency code, function

2. Network: where I have agency code, area code, region code

3. Table with Kpi for employees

 

I want when someone logs into power service, to see the table with kpi only for his region, if he is a regional manager, only for the area if he is a area manager, or only for his agency if he is an agency manager.

 

Could you please help me?

1 ACCEPTED SOLUTION
SamWiseOwl
Super User
Super User

Hi @Som_17 

You can create roles on the Modelling tab:

SamWiseOwl_0-1728559725486.png

Add a new role and select the table to filter (Network) and click Switch to DAX view

SamWiseOwl_1-1728559784810.png

 

Now filter the Network table based on the user table:

SamWiseOwl_2-1728559962453.png

 

Network[Agency Code] = CALCULATE(Employees[Agency Code], Employees[email address] = USERPRINCIPALNAME())
 
To test it out choose Modelling | View as role and then tick the role and enter the email address to test:
SamWiseOwl_3-1728560026754.png

 

Now your report (and table view) will be filtered by your calculation.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

1 REPLY 1
SamWiseOwl
Super User
Super User

Hi @Som_17 

You can create roles on the Modelling tab:

SamWiseOwl_0-1728559725486.png

Add a new role and select the table to filter (Network) and click Switch to DAX view

SamWiseOwl_1-1728559784810.png

 

Now filter the Network table based on the user table:

SamWiseOwl_2-1728559962453.png

 

Network[Agency Code] = CALCULATE(Employees[Agency Code], Employees[email address] = USERPRINCIPALNAME())
 
To test it out choose Modelling | View as role and then tick the role and enter the email address to test:
SamWiseOwl_3-1728560026754.png

 

Now your report (and table view) will be filtered by your calculation.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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