Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Good afternoon, I have a query. I have a set of images within SharePoint, but when I want to use the url that has no termination in .jpg or .png, it is not possible to visualize within the visuals offered by Power BI. In this the visual object I use is the Simple Images
Solved! Go to Solution.
best way to access images on a sharepoint folder for my power bi reports is using a dataflow that converts it to BASE64.
Setup a Dataflow to point to sharepoint image folders and convert them to BASE64 per Chris Webbs Blog.
The only difference is instead of Folder.Files you use sharepoint contents function.
Country Flag Image Table in BASE64
You then need DAX statement to cocatenante BASE64 string so it can display in Matrix or Table visual.
Display Country Flag =
IF(
AND ( HASONEVALUE ( 'DimRegion'[Country] ), [_Has Sales] ),
"data:image/jpeg;base64, " &
CONCATENATEX(
FILTER ('CountryFlag', 'CountryFlag'[Name] = VALUES('DimRegion'[Country])),
'CountryFlag'[Pic],
,
'CountryFlag'[Index],
ASC)
)
This seems to best result and least impact on model size and speed of operation.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Thanks & Regards
Harish
best way to access images on a sharepoint folder for my power bi reports is using a dataflow that converts it to BASE64.
Setup a Dataflow to point to sharepoint image folders and convert them to BASE64 per Chris Webbs Blog.
The only difference is instead of Folder.Files you use sharepoint contents function.
Country Flag Image Table in BASE64
You then need DAX statement to cocatenante BASE64 string so it can display in Matrix or Table visual.
Display Country Flag =
IF(
AND ( HASONEVALUE ( 'DimRegion'[Country] ), [_Has Sales] ),
"data:image/jpeg;base64, " &
CONCATENATEX(
FILTER ('CountryFlag', 'CountryFlag'[Name] = VALUES('DimRegion'[Country])),
'CountryFlag'[Pic],
,
'CountryFlag'[Index],
ASC)
)
This seems to best result and least impact on model size and speed of operation.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Thanks & Regards
Harish
Hi,
This is likely because the image is not anonymously accessible. You to be logged into sharepoint to be able to view these images. In this piece of documentation you will find more details under the "Consideration" header.
Display images in a table or matrix in a report - Power BI | Microsoft Docs
Regards,
Tim
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
80 | |
53 | |
39 | |
39 |
User | Count |
---|---|
104 | |
85 | |
47 | |
44 | |
43 |