Forum Discussion

crobinson661's avatar
crobinson661
Frequent Visitor
2 years ago
Solved

Make Web URL button disappear if value is blank

  I have a page with various URL buttons and the backend data is only populated where there is a URL to navigate to, otherwise it's blank. There is a table on the page that populates various info ab...
  • Ritaf1983's avatar
    2 years ago

    Hi crobinson661 
    There is no option to make something "disabled" but you can use conditional formatting to make the button invisible / give it some text like " note the link is unavailable".

    For the first option, you can use flag measure like :

    test button = if(max('Table'[link])="",1,0)
    and then modify the color of the text / other elements of a button based on this measure :

    + the same on the border if you have one

    the result :

    Message option:

    create a measure like :

    test with message = if(max('Table'[link])="", "Note the link is unvailible", "Press to the link")

    using conditional formatting "take it " to the button

    and using color conditional formatting to make it red 

    result

    PBIX is attached

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