Forum Discussion
Hide image not found icon
- 3 years ago
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.
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.
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.
- cassidy3 years ago
Power 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".
- gaiusgw3 years ago
Helper III
So there is another bit of info worth mentioning. The images links are created like this;
Table.AddColumn(#"Renamed Columns1", "Merged", each Text.Combine({"https://www.website.com/images/", Text.Trim([STYLE]), ".jpg"}), type text)
So the link is created whether the ftp has the image loaded or not. So all rows in the data have a link. Do your solutions above apply in this case?
- cassidy3 years ago
Power Participant
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.