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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Dynamically show image in separate object

Hi all,

 

I am trying to have the flag of a country shown in a separate, text box-like, object. But I want to have this only when a country is selected from a table; it should be empty when no selection is made. 

Some sample data:

CountryImage
Australiahttps://d18vdu4p71yql0.cloudfront.net/libraries/twemoji/1f1e6-1f1fa.svg
Brazilhttps://d18vdu4p71yql0.cloudfront.net/libraries/twemoji/1f1e7-1f1f7.svg
Chinahttps://d18vdu4p71yql0.cloudfront.net/libraries/twemoji/1f1e8-1f1f3.svg

Netherlands

https://d18vdu4p71yql0.cloudfront.net/libraries/twemoji/1f1f3-1f1f1.svg

The output I had in mind:

PowerBI_images.PNG

I need this feature in the future when we have a table with all products that are for sale. When the user selects a product, the corresponding image should show up such that the user knows exactly what product he is selecting. 

Thanks in advance.

 

Kind regards

1 ACCEPTED SOLUTION
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

If i have understood correctly then one way to achieve it would be to create your separate flag visual using a table for example then creating a measure using a code like below

Hide/Show = IF(ISFILTERED(Table[Country]),1,0)

 

After that you can add the measure as a visual filter and set it like below

3.PNG

 

This should show the image when something is selected in the slicer but be empty when nothing is selected

View solution in original post

2 REPLIES 2
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

If i have understood correctly then one way to achieve it would be to create your separate flag visual using a table for example then creating a measure using a code like below

Hide/Show = IF(ISFILTERED(Table[Country]),1,0)

 

After that you can add the measure as a visual filter and set it like below

3.PNG

 

This should show the image when something is selected in the slicer but be empty when nothing is selected

Anonymous
Not applicable

Works exactly as planned. Thanks a lot!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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 Solution Authors