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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
POSPOS
Post Partisan
Post Partisan

Show and Hide image based on slicer selection

Hi All,

I have a requirement to show an image based on the slicer selection.

The below icon should appear only when one protocol is selected from the slicer. By default all the protocols will be selected, hence we want to hide this image.

POSPOS_0-1702058243235.png


When the icon is selected, there will be dates showing up

POSPOS_1-1702058345022.png

This functionality should be available only when one protocol is selcted.

Can someone please suggest on how to achieve this. Sample pbix file is uploaded here.

Thank you

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @POSPOS 
There is no functionality for conditional visibility of the icon.
But you can get the needed effect with conditional formatting.
IF the report's background is white like on the dummy file you need to use one of the generic icons of the tool, 
because you need the ability to format its color.

For example :

Ritaf1983_0-1702106035194.png

Then you can create a flag measure which will check if the protocol selected :

protocol_flag = if(ISFILTERED('Table'[Protocol]),1,0)
The last step is to modify conditional formatting which will color the arrow to white in case no protocol was selected :
Ritaf1983_1-1702106215478.png

Result :

Ritaf1983_2-1702106271731.pngRitaf1983_3-1702106315161.png

*It will not work with imported icons because you can't format their line color,

you can't also hide it by another object because it should be clickable.

pbix is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @POSPOS 
There is no functionality for conditional visibility of the icon.
But you can get the needed effect with conditional formatting.
IF the report's background is white like on the dummy file you need to use one of the generic icons of the tool, 
because you need the ability to format its color.

For example :

Ritaf1983_0-1702106035194.png

Then you can create a flag measure which will check if the protocol selected :

protocol_flag = if(ISFILTERED('Table'[Protocol]),1,0)
The last step is to modify conditional formatting which will color the arrow to white in case no protocol was selected :
Ritaf1983_1-1702106215478.png

Result :

Ritaf1983_2-1702106271731.pngRitaf1983_3-1702106315161.png

*It will not work with imported icons because you can't format their line color,

you can't also hide it by another object because it should be clickable.

pbix is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors