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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors