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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Titatovenaar2
Advocate II
Advocate II

RLS: Conditional Navigation, hiding buttons (.pbix included)

Hi guys,

 

I am currently creating a report in which I use buttons to navigate through pages, using row-level security (RLS).

These buttons should only be visible when a user has the correct authorization/security rights to do so.

 

For a part I have been able to make it work: the buttons only navigate to a page when you have sufficient security rights.

However, I want them to disappear entirely if you don't have the rights.

 

I've created a very simplistic .pbix file to showcase this. This is with january 2021 update, however.

 

I've created the table 'Users' with 2 users in it, user 'test' and user 'admin'. If you navigate to Modeling>View as and enter here 'test' and select 'Page' with it, you'll notice the security works.

Titatovenaar2_0-1622035354907.png

The buttons have the following DAX logic behind them:

Button 2 Destination = 
MAXX (
    FILTER (
        ADDCOLUMNS (
            'Page Level Security',
            "Rank", RANKX ('Page Level Security',[Order],,ASC)
        ),
        [Rank] = 2 //change this number with button number
    ),
    [Page Name]
)

For button 'Home' which is the first button, replace the 2's with 1's.

 

Do you have any suggestions what I am missing to make the buttons themselves disappear?

 

Kind regards,

Igor

 

 

1 ACCEPTED SOLUTION
SivaMani
Resident Rockstar
Resident Rockstar
1 REPLY 1
SivaMani
Resident Rockstar
Resident Rockstar

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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