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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Enable buttons in PowerBI when certain condition occurs and on cliking the button navigate to other

I am newbie in Power BI. I am receiving some real time data, the objective is used to enable button when a column with value say "0" is received. And on clicking the button one should navigate to another page. Till now I have added buttons and on clicking I can navigate to the other page but I want it to have dynamically with the above condition.

It is like some error has occurred(enable the button) and one should move to another page to see that error.

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

View solution in original post

3 REPLIES 3
JosephH
New Member

A work around that has worked for me is the following:

 

1. Write a measure: IF([ColumnValue=0], "New Page Name", "Current Page Name")

2. To your button, add 'Page Navigation' as your action.

3. Base the page navigation off the above measure (under fx):

JosephH_0-1706783289264.png

The result of this should be a button that takes you to a new page if ColumnValue=0, else the button will keep you on the current page. 

 

To show and hide the button further, the following article is useful, as @jaideepnema mentioned: https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/

v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

jaideepnema
Solution Sage
Solution Sage

Hi @Anonymous ,

As per my understanding, you cannot dynamically enable or disable a button in Power BI basis a certain condition.

However check this post if it helps 
https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/

 

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.