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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
pirinthan14
Regular Visitor

How to give access for a dashboard with two different privileges in Power BI?

as a example, I have list of US states and cities
I want to show “TN, OR, LA” states when User A opens the dashboard, for everyone else, all states need to be shown.

No idea to do this .I am using 30 days trial Power BI desktop

1 ACCEPTED SOLUTION
AlexChen
Employee
Employee

Hi @Pirinthan,

For example, you have table “stateTable” in powerbi desktop.

 

1.png

 

You can follow the steps below to config row level access to your table.

 

1. create roles by clicking Manage roles in powerbi desktop.

 

2.png

 

2. click create to create roles, here I create 2 roles,

role1 can only see data of state TN, OR, LA

 

3.png

 

role2 can see all of the states.

 

 

4.png

 

Then click Save to save your setting.

 

3. create a report and publish it to service.

 

5.png

 

4. go to service and find your dataset, click “…”,  then click “SECURITY”,

 

6.png

 

5. You will see page below with 2 roles there. Role1 can only view state “TN”, “OR”, “LA”. Role2 can view all states just the same with what you configured in powerbi desktop above. Add members to role1 and role2.

 

7.png

 

 

6. Share you dashboard to the members in role1,  then login in with the members to powerbi service.

You will find that the members can only see state “TN”, “OR”, “LA”.

 

8.png

7. Share you dashboard to the members in role2,  then login in with the members to powerbi service.

You will find that the members can view all states.

 

9.png

 

 

 

 

 

 

 

 

View solution in original post

3 REPLIES 3
AlexChen
Employee
Employee

Hi @Pirinthan,

For example, you have table “stateTable” in powerbi desktop.

 

1.png

 

You can follow the steps below to config row level access to your table.

 

1. create roles by clicking Manage roles in powerbi desktop.

 

2.png

 

2. click create to create roles, here I create 2 roles,

role1 can only see data of state TN, OR, LA

 

3.png

 

role2 can see all of the states.

 

 

4.png

 

Then click Save to save your setting.

 

3. create a report and publish it to service.

 

5.png

 

4. go to service and find your dataset, click “…”,  then click “SECURITY”,

 

6.png

 

5. You will see page below with 2 roles there. Role1 can only view state “TN”, “OR”, “LA”. Role2 can view all states just the same with what you configured in powerbi desktop above. Add members to role1 and role2.

 

7.png

 

 

6. Share you dashboard to the members in role1,  then login in with the members to powerbi service.

You will find that the members can only see state “TN”, “OR”, “LA”.

 

8.png

7. Share you dashboard to the members in role2,  then login in with the members to powerbi service.

You will find that the members can view all states.

 

9.png

 

 

 

 

 

 

 

 

AlexChen
Employee
Employee

Hi @Pirinthan,

 

You can use Dynamic Row Level Security to do this. 

 

You can do configuration in database to control the content that a user can see from dashboard.

 

For more details, you can see https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-tutorial-row-level-security-onprem...

 

Best Regards

Alex

Thanks @AlexChen

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors