Forum Discussion

gaiusgw's avatar
gaiusgw
Icon for Helper III rankHelper III
3 years ago
Solved

Hide image not found icon

I would rather that the broken link icon did not display if there is a file not found. Is there a way to make it so it is blank instead of displaying the icon? 

 

  • Ahh, you are just pre-empatively creating the URL and it may or may not exist.  I thought you were getting broken images because you didn't have a URL for certain products.

    Unless you can source the actual valid URLs instead of creating them, I'm not sure how to surpress/or swap out the broken image.  There are 3rd party Matrix/Image visuals out there, perhaps one of them won't show that broken icon.

6 Replies

  • cassidy's avatar
    cassidy
    Icon for Power Participant rankPower Participant

    The way I deal with it is to have a literal "Image Missing" image hosted and have it replace any missing images.

     

    In Power Query, any time your imagelink field is null, insert the link to an image that is whatever you want.

    • gaiusgw's avatar
      gaiusgw
      Icon for Helper III rankHelper III

      Thanks for suggestion. Do you mean transform data and make the url column have iferror? I am a novice for any extra detail would be awesome. 

      • cassidy's avatar
        cassidy
        Icon for Power Participant rankPower Participant

        I do mean that, except I think I do Transform Column > Replace Values step on the url column that says "replace null with (your no image link)". 

         

        Or you could create a new custom column with "if imagelink = null then (your no image link) else imagelink".