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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

can we create dynamically dax for page navigation in power bi?

The selected and enabled tab should be green and disabled tab should be red and data should not be visible. how can we make dynamic page navigation using DAX?

3 REPLIES 3
Anonymous
Not applicable

Hi  @Anonymous ,

You may need to firstly define which pages on the Table visual has no value, and then use Conditioanl Formatting on Background color:

Follow the link below to create Buttons and which page to navigate:

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-buttons?tabs=powerbi-desktop#create-page-navigation

Then use measure to select the fx of Background color to customize the color:

Navigate button =
SWITCH(
    MAX('Page Name'[Value]),"Not data","Red","data","Green")

vyangliumsft_0-1654758090717.png

vyangliumsft_1-1654758090719.png

This is the related document, you can view this content:

https://community.powerbi.com/t5/Desktop/Conditional-Page-Navigation-with-RLS-button-color-should-change/td-p/2277101

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

SpartaBI
Community Champion
Community Champion

Anonymous
Not applicable

Hi,

 

Thanks for replying it is not working what I am expecting.

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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