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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
TMA
Frequent Visitor

SVG text being cut when imported

I imported imported a folder with svg files in it, then created a new column, for example: 

 

let
Source = Folder.Files("C:\Users\Downloads\svg"),
Custom1 = Table.AddColumn(Source, "SVG", each Text.FromBinary([Content], BinaryEncoding.Base64))
in
Custom1

 

Then I used HTML Viewer to display my image but the image is imcomplete, it turns out that power bi is not importing the full text of the svg file, any ideas on how to fix this?

 

The one in the right is what is should look like

TMA_0-1723795139848.png

 

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @TMA 

The values in the SVG column may be reaching the limit of 32,766 characters. Anything greater than 32,766 characters is silently truncated when loading to the data model.

 

You could check this by adding a DAX calculated column

 

SVG Length = LEN ( YourTable[SVG] )

 

If that is the case, you could try the method described in this blog post, where each image is split across rows, and recombined in a measure.

https://blog.crossjoin.co.uk/2019/05/19/storing-large-images-in-power-bi-datasets/

 

If that's not the issue, could you share an example of an SVG that is not working?


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

View solution in original post

1 REPLY 1
OwenAuger
Super User
Super User

Hi @TMA 

The values in the SVG column may be reaching the limit of 32,766 characters. Anything greater than 32,766 characters is silently truncated when loading to the data model.

 

You could check this by adding a DAX calculated column

 

SVG Length = LEN ( YourTable[SVG] )

 

If that is the case, you could try the method described in this blog post, where each image is split across rows, and recombined in a measure.

https://blog.crossjoin.co.uk/2019/05/19/storing-large-images-in-power-bi-datasets/

 

If that's not the issue, could you share an example of an SVG that is not working?


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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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