Forum Discussion
Specifying URLs dynamically in a PBI report in the cloud
Hi,
I know that I can show images dynamically by stuffing public URL for an image into a PBI dataset/report that we push up to the cloud.
However, in our situation we have a ton of images on a google drive.
However, I don't know how to "encode/translate" that into a URL that I can put into a PBI column that I'm using.
Everything I try to push in, using that google drive definition, doesn't seem to work for me.
Hi Kevin,
To dynamically show images stored in Google Drive within a Power BI report, you need to transform the Google Drive shareable link into a direct image URL. Power BI only renders images from direct URLs (ending in .jpg, .png, etc.), not HTML viewer pages that Google Drive typically generates.
π§ Step-by-step Solution
- Get the Google Drive Shareable Link
Right-click your image in Google Drive β Click Get Link β Ensure visibility is set to Anyone with the link. Youβll get a URL like:
https://drive.google.com/file/d/FILE_ID/view?usp=sharing - Convert it to a Direct Link
Replace that with the direct download format:
https://drive.google.com/uc?export=view&id=FILE_ID
For example:
https://drive.google.com/uc?export=view&id=T8166M-IVORY-BLUE-ROYAL-OG-5
(Use the actual file ID string from the original URL.) - Update the Column in Power BI
In Power BI Desktop, add a new column (in Power Query or DAX) that constructs these URLs. For example, if you have a column with File IDs:
ImageURL = "https://drive.google.com/uc?export=view&id=" & Table[FileID] - Display the Image
Add a table or matrix β place the new ImageURL field β set the column data category to Image URL (Model view β Advanced properties).
β οΈ Important Notes
- Google Drive links must be publicly accessible β if access is restricted, images won't render in Power BI Service.
- Use small images if possible, as loading many images over the cloud may slow down your report.
Try creating a few links this way and test them inside your report visuals.
βοΈ If my message helped solve your issue, please mark it as Resolved!
π If it was helpful, consider giving it a Kudos!
- Get the Google Drive Shareable Link
5 Replies
- SolomonovAnton
Super User
Hi Kevin,
To dynamically show images stored in Google Drive within a Power BI report, you need to transform the Google Drive shareable link into a direct image URL. Power BI only renders images from direct URLs (ending in .jpg, .png, etc.), not HTML viewer pages that Google Drive typically generates.
π§ Step-by-step Solution
- Get the Google Drive Shareable Link
Right-click your image in Google Drive β Click Get Link β Ensure visibility is set to Anyone with the link. Youβll get a URL like:
https://drive.google.com/file/d/FILE_ID/view?usp=sharing - Convert it to a Direct Link
Replace that with the direct download format:
https://drive.google.com/uc?export=view&id=FILE_ID
For example:
https://drive.google.com/uc?export=view&id=T8166M-IVORY-BLUE-ROYAL-OG-5
(Use the actual file ID string from the original URL.) - Update the Column in Power BI
In Power BI Desktop, add a new column (in Power Query or DAX) that constructs these URLs. For example, if you have a column with File IDs:
ImageURL = "https://drive.google.com/uc?export=view&id=" & Table[FileID] - Display the Image
Add a table or matrix β place the new ImageURL field β set the column data category to Image URL (Model view β Advanced properties).
β οΈ Important Notes
- Google Drive links must be publicly accessible β if access is restricted, images won't render in Power BI Service.
- Use small images if possible, as loading many images over the cloud may slow down your report.
Try creating a few links this way and test them inside your report visuals.
βοΈ If my message helped solve your issue, please mark it as Resolved!
π If it was helpful, consider giving it a Kudos!
- Get the Google Drive Shareable Link
- aj1973
Community Champion
Hi KevinSGoff
Not clear what you want to achieve but I think you need to create an excel file with with 2 columns or better Add Table in Power Query, one column contains the name of the images and the other contains the URL of the image. Add the Excel file to your Dataset.
- v-saisrao-msft
Community Support
Hi KevinSGoff,
Have you had a chance to review the solution we shared by SolomonovAnton aj1973 If the issue persists, feel free to reply so we can help further.
Thank you.
- v-saisrao-msft
Community Support
Hi KevinSGoff,
Checking in to see if your issue has been resolved. let us know if you still need any assistance.
Thank you.
- v-saisrao-msft
Community Support
Hi KevinSGoff,
We havenβt heard back from you in a while regarding your issue. let us know if your issue has been resolved or if you still require support.
Thank you.