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
heatherforman
Frequent Visitor

Image based on slicer selection - broken link

Hello,

I am trying to get an image to appear when the person selected by the slicer is approaching their 25th reunion.

I created a new column using the formula below, and categorized it as Image URL. The viz is a table. The image is saved in a google drive and the access is set to "anyone with the link"

It is working, in that the broken image icon shows up when a person in the 25th window is selected, and nothing shows up when someone outside the window is selected. I just can't figure out why the link is broken. Any ideas?

Thank you!

 

Formula:

25th Image test =
IF('SDO Query'[Reunion Window Ind] = "25th Window", "https://drive.google.com/file/d/1C5D9M8RStdDVK0nYLu_RSgYBjnMbEl-T/view?usp=sharing","")
 
heatherforman_0-1750725974568.png

 


 

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @heatherforman 

After some Googling, it appears to work if you change the URL to this format, with the image ID following the final forward-slash:

https://lh3.googleusercontent.com/d/1C5D9M8RStdDVK0nYLu_RSgYBjnMbEl-T

The calculated column expression for this URL would then be:

25th Image test =
IF (
    'SDO Query'[Reunion Window Ind] = "25th Window",
    "https://lh3.googleusercontent.com/d/1C5D9M8RStdDVK0nYLu_RSgYBjnMbEl-T",
    ""
)

 

 

Does this work for you?


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

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

Hi @heatherforman 

After some Googling, it appears to work if you change the URL to this format, with the image ID following the final forward-slash:

https://lh3.googleusercontent.com/d/1C5D9M8RStdDVK0nYLu_RSgYBjnMbEl-T

The calculated column expression for this URL would then be:

25th Image test =
IF (
    'SDO Query'[Reunion Window Ind] = "25th Window",
    "https://lh3.googleusercontent.com/d/1C5D9M8RStdDVK0nYLu_RSgYBjnMbEl-T",
    ""
)

 

 

Does this work for you?


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

Yes! It worked, thank you so much!

 

It's actually showing up very tiny, but I'm sure I can adjust the formatting. It's always something 😂

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.