Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Disable / Enable Button

Hi All,

 

I made button to go other page, but I want to make button enabled only when user select one value from slicer.

 

Is there any way to control button to disable / enable?

 

Thanks in advance.

13 Replies

  • Anonymous check this post that talks about it. In this post, it shows how to enable/disable button

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks parry2k,

      It looks great, I didn't realize the function in Power BI desktop.

      Is it possible only from Power BI service?

      • parry2k's avatar
        parry2k
        Super User

        Anonymous not sure what you mean, only from Power BI Service?

    • Anonymous's avatar
      Anonymous
      Not applicable

      parry2k  Do you think I can do the same thing with navigation button?

       

      I followed the post, created the measure and it works great but when it button of type navigation I dont manage to disable it when the conditions are not met. the button dosent do anything but its not disabled

  • Hi 

    I may be very late to this but I have a solution if you are still looking for one.

     

    For example, if your slicer is built on country name-

    And I have buttons to navigate to the pages-

    Next as per your requirement, I have created a measure in the dim_product table as below-

    logic = if(ISCROSSFILTERED(dim_country[country_name]),"Country Analysis","")
     
    Next I go to the button and assign this measure to the action setting under page navigation.

     

    You are good to go.