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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
julesdude
Post Partisan
Post Partisan

Show and Hide an Image based on Conditions in Measure

Hi,

I want to hide or show a GIF in my report based on a certain true or false critera in a measure I have.

Can this be achieved?

I've seen a lot on showing or hiding visualisations i.e. charts and graphs. However, if I use Insert > Image on the Ribbon, the options in the formatting side panel are limited. I was hoping to be able to control the transparency, but there is no option to do so. 

Is there a workaround? Perhaps embedding it into another visual that does have an FX control for transparency? Can anyone please advise?

2 REPLIES 2
amitchandak
Super User
Super User

@julesdude , Refer this from Matt

https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

Thank you. I had looked at Matt's vid on this. It's not quite what I'm after. I essentially am already using his method. I have an image that changes per user selection on a drop down filter. Image paths are dynamic and link to photos stored on SharePoint. If an image for the user selection is not available, I already have a card with text 'no image available' that has it's transparency controlled to cover any image underneath from view. What I need is to superimpose my 'SOLD' GIF image over the photo (or make the GIF visible in some way) when the item is actually sold and to not be visible when it is not.

I'll use text in another card if I have to and show that, but I liked the slanted text, style and color of this 'SOLD' image, so had a preference to use it as it just looks nicer.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.