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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
mehlenbae2
Helper II
Helper II

Simple Image Visual will not go away when slicer unselected

Hello,

 

I have a Simple Image visual that shows up ONLY when any value is selected from my "Sim ID" slicer. This works perfectly until I select a value in the "Sim ID" slicer and then UNSELECT the value in the slicer, the Simple Image visual will not go away.

 

I have a measure called "Show Simple Image":

 

Show Simple Image =
IF (
    ISFILTERED ( 'Campaigns'[Sim ID] ) && COUNTROWS(ALLSELECTED('Campaigns'[Sim ID])) > 0,
    1,
    0
)
 
Any idea of how to fix this?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mehlenbae2 ,

Thank you and I successfully opened your .pbix file.

I think you can change the 1 and 0 in the measures named Hide Line Chart and Show Simple Image.

 

Hide Line Chart = IF(
    ISFILTERED ( 'Campaigns'[Sim ID] ),
    0,
    1
)
Show Simple Image = 
IF (
    ISFILTERED ( 'Campaigns'[Sim ID] ) && COUNTROWS(ALLSELECTED('Campaigns'[Sim ID])) > 0,
    0,
    1
)

 

Then I think it will achieve your requirements.

vyilongmsft_0-1713341101131.png

vyilongmsft_0-1713341251095.png

vyilongmsft_1-1713341315407.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @mehlenbae2 ,

I create a table as you mentioned.

vyilongmsft_0-1712799284920.png

Then I change your DAX code and here is the DAX code.

Measure =
IF (
    ISFILTERED ( 'Campaigns'[Sim ID] )
        && NOT ISBLANK ( MAX ( 'Campaigns'[Sim ID] ) ),
    1,
    0
)

vyilongmsft_1-1712799433596.pngvyilongmsft_2-1712799474047.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi there,

 

I tested this and it still does not work. I will attach a test PBI to this comment.

 

Here are my requirements for functionality:

1. The photo (Simple Image) should NOT show when nothing is selected in either the "Date" slicer or the "Sim ID" slicer.

2. The photo (Simple Image) should NOT show if a value in the the "Date" slicer is selected.

3. The photo (Simple Image)  SHOULD ONLY show when there is a value selected in ONLY the "Sim ID" slicer.

4. The photo (Simple Image) SHOULD dissapear when a value in the "Sim ID" slicer is no longer selected.

 

Attached is my TEST PBI. This is the exact format I have in my MASTER pbix file.

 

Link: PBI: https://www.dropbox.com/scl/fi/poywqhwmi9bgjw6n5hrvw/TEST5.pbix?rlkey=cxy49gxbxw0dj5cjis2du9tod&dl=0

Anonymous
Not applicable

Hi @mehlenbae2 ,

It seems that I can not open the .pbix file. Could you please change a way to upload the file?

vyilongmsft_0-1713169064445.png

 

 

Best Regards

Yilong Zhou

Anonymous
Not applicable

Hi @mehlenbae2 ,

Thank you and I successfully opened your .pbix file.

I think you can change the 1 and 0 in the measures named Hide Line Chart and Show Simple Image.

 

Hide Line Chart = IF(
    ISFILTERED ( 'Campaigns'[Sim ID] ),
    0,
    1
)
Show Simple Image = 
IF (
    ISFILTERED ( 'Campaigns'[Sim ID] ) && COUNTROWS(ALLSELECTED('Campaigns'[Sim ID])) > 0,
    0,
    1
)

 

Then I think it will achieve your requirements.

vyilongmsft_0-1713341101131.png

vyilongmsft_0-1713341251095.png

vyilongmsft_1-1713341315407.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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