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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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