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
gouthamct1994
New Member

Hide Button with RBAC

Hello,

 

I have a Button, which, when clicked, will display a table that is otherwise hidden. Now, that button is visible to everyone who accesses the report. I have created a table with Display name, Position (Managers/Officer), and User Principal name (Email Address).

If the Manager logs into the report, they should see the button and be able to use it. If an Officer logs in to the report, the button should be hidden and disabled, so they cannot use it.

 

How can I achieve it with Role base access control??

 

Thanks

1 ACCEPTED SOLUTION
kushanNa
Super User
Super User

Hi @gouthamct1994 

 

What you're trying to do here is similar to visual-level security, which is currently not available in Power BI. However, it's actually a great idea and should be submitted to Fabric Ideas.

 

If your concern is about users seeing a blank table—such as when an officer clicks a button and then complains about it—you might consider adding a disclaimer or message. If you haven't tried this already, you can display a warning or alert indicating that they are not authorized to access that content when they click on the button.

In the example below, you'll see that when an officer clicks the button, a warning message is shown. But when a manager clicks the "Show Table" button, no warning appears.

 

 

kushanNa_0-1754488901935.png

kushanNa_1-1754488943454.png

I’ve attached a simple sample PBIX file so you or anyone else can try it out.

View solution in original post

6 REPLIES 6
v-lgarikapat
Community Support
Community Support

Hi @gouthamct1994 ,

Thanks for reaching out to the Microsoft fabric community forum.

 

@kushanNa , @amitchandak ,

Thanks for your prompt response

@gouthamct1994 ,

I wanted to follow up and confirm whether you’ve had the opportunity to review the information   provided @kushanNa  , @amitchandak  . If you have any questions or need further clarification, please don’t hesitate to reach out.

 

Looking forward to your response.

Best regards,
Lakshmi.

Hi @gouthamct1994 ,

We’d like to confirm whether your issue has been successfully resolved. If you still have any questions or need further assistance, please don’t hesitate to reach out. We’re more than happy to continue supporting you.

 

Best Regards,

Lakshmi

Hi @gouthamct1994 ,

 

We’d like to confirm whether your issue has been successfully resolved. If you still have any questions or need further assistance, please don’t hesitate to reach out. We’re more than happy to continue supporting you.

 

Best Regards,

Lakshmi

kushanNa
Super User
Super User

Hi @gouthamct1994 

 

What you're trying to do here is similar to visual-level security, which is currently not available in Power BI. However, it's actually a great idea and should be submitted to Fabric Ideas.

 

If your concern is about users seeing a blank table—such as when an officer clicks a button and then complains about it—you might consider adding a disclaimer or message. If you haven't tried this already, you can display a warning or alert indicating that they are not authorized to access that content when they click on the button.

In the example below, you'll see that when an officer clicks the button, a warning message is shown. But when a manager clicks the "Show Table" button, no warning appears.

 

 

kushanNa_0-1754488901935.png

kushanNa_1-1754488943454.png

I’ve attached a simple sample PBIX file so you or anyone else can try it out.

amitchandak
Super User
Super User

@gouthamct1994 , As of now the action can not be dynamic for Bookmark. But it can be there for page. So you can disable page button base on login 

 

Once you enable action as page navigation, use fx and add a measure like 

 

= if(userprincipalname() = "a@abc.com", "Page1", blank()) 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

To the button, I have already tagged a Bookmark. I want a solution that hides or disable this button based on Role base access control

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.