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
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
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.