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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
vamshikrishna20
Helper III
Helper III

Dynamic Images based on Slicer selection

Hi Everyone, 

 

Hope all doing well. I have 4 images which are not web hosted (in my local folder). My requirement is the image should change based on slicer selection. please let me know if this is doable in Power BI.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @vamshikrishna20 

1.You can transfer the image to base64 code , then use it as an image url to insert to a table.

You can use the following website to transfer the image to base64 code.

Base64 Image Encoder (base64-image.de)

Then copy the code to a table and set the column type to Image URL

vxinruzhumsft_0-1680749770088.png

Then you can use slicer to filter it.

vxinruzhumsft_1-1680749929696.png

 

vxinruzhumsft_2-1680749942238.png

 

You can refer to the following video.

Power Bi : Use Local Images in Power Bi. 3 Different Methods - YouTube

 

2.You can use r script to control it , you can refer to the following link.

Dynamically Changing Shapes in Power BI | Under the kover of business intelligence (sqlkover.com)

 

Best Regards!

Yolo Zhu

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

1 REPLY 1
Anonymous
Not applicable

Hi @vamshikrishna20 

1.You can transfer the image to base64 code , then use it as an image url to insert to a table.

You can use the following website to transfer the image to base64 code.

Base64 Image Encoder (base64-image.de)

Then copy the code to a table and set the column type to Image URL

vxinruzhumsft_0-1680749770088.png

Then you can use slicer to filter it.

vxinruzhumsft_1-1680749929696.png

 

vxinruzhumsft_2-1680749942238.png

 

You can refer to the following video.

Power Bi : Use Local Images in Power Bi. 3 Different Methods - YouTube

 

2.You can use r script to control it , you can refer to the following link.

Dynamically Changing Shapes in Power BI | Under the kover of business intelligence (sqlkover.com)

 

Best Regards!

Yolo Zhu

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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