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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors