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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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