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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mehlenbae2
Helper II
Helper II

Simple Image Visual will not go away when slicer unselected

 

Hello,

I'm encountering an issue with my Simple Image visual. It's set to display only when a value is selected from the "Sim ID" slicer. This works perfectly until I select a value in the slicer and then deselect it; the Simple Image visual persists.

I've implemented a measure named "Show Simple Image" as follows:

 

Show Simple Image =
IF (
ISFILTERED ( 'Campaigns'[Sim ID] ) && COUNTROWS(ALLSELECTED('Campaigns'[Sim ID])) > 0,
1,
0
)
 
 
Here are my functionality requirements:
  1. The Simple Image should not display when neither the "Date" slicer nor the "Sim ID" slicer has a selected value.
  2. The Simple Image should not display if a value is selected in the "Date" slicer.
  3. The Simple Image should only display when there's a value selected solely in the "Sim ID" slicer.
  4. The Simple Image should disappear when no value is selected in the "Sim ID" slicer.

Attached is my TEST Power BI file, I desperately need help in fixing this.

 

TEST5.pbix Dropbox Link

 

Could you assist me in resolving this issue?

1 REPLY 1
OwenAuger
Super User
Super User

Hi @mehlenbae2 

Unfortunately the Simple Image visual appears a bit buggy in that it can get stuck on the last image displayed.

 

You might have more success with the HTML Content visual.

In the attached PBIX I have created a second page to test that visual.

 

I created a column Image HTML for this purpose:

Image HTML = 
"<img style='width: 100%; height: 100%; object-fit: contain;' src='" & Campaigns[Image URL] & "'/>"

and the measure Show Image used as a visual-level filter:

Show Image = 
IF (
    ISFILTERED ( 'Campaigns'[Sim ID] ) && NOT ISFILTERED ( Campaigns[Date].[Year] ),
    1,
    0
)

The image display appears to work as expected, but you can tweak the above as needed (especially the HTML 🙂 ).

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors