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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.