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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-yangliu-msft
Community Support
Community Support

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors