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