Forum Discussion

DataVitalizer's avatar
DataVitalizer
Super User
1 year ago
Solved

Displaying SVG inside a table visual is broken

Hi Community,

 

I have been trying recently to display svg files in a table visual.


The svg files are stored locally, when I connect them to PBI Desktop I get broken images in the table visual, I also used python to generate Base64 but still getting the same results.

Any suggestions?

 

7 Replies

  • KerKol's avatar
    KerKol
    Power Participant

    As far as I was aware they can't be stored locally?

    • DataVitalizer's avatar
      DataVitalizer
      Super User

      Is there any article confirming this? 
      I do have a condition to keep the svg files on the local server.

      Any suggestions?

      • KerKol's avatar
        KerKol
        Power Participant

        There are some blogs talking to this but my google foo escapes me. You could try Chris Webbs Blog for this information and how to parse base64s. If the images are small enough you could try bringing them into your theme file as part of the icon set or, paste them into a DAX measure with a dataimage prefix. Google SVG measures (these would work for base64 too).

  • v-sdhruv's avatar
    v-sdhruv
    Community Support

    Hi DataVitalizer ,
    Svg is supported in Power BI deskop.
    You can refer this link-
    https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-images-tables#considerations
    Also, dont forget to visit its considerations -

    If that might be affecting the visual.

    You can also refer this-
    https://datasavvy.me/2022/12/15/clickable-svg-images-in-power-bi-using-the-html-content-custom-visual/

    Hope this helps!
    If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
    Thank You!

  • v-sdhruv's avatar
    v-sdhruv
    Community Support

    Hi DataVitalizer ,
    Just wanted to check if you had the opportunity to review the suggestion provided?
    If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
    Thank You

  • v-sdhruv's avatar
    v-sdhruv
    Community Support

    Hi @DataVitalizer ,
    Just wanted to check if you had the opportunity to review the suggestion provided?
    If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
    Thank You

  • v-sdhruv's avatar
    v-sdhruv
    Community Support

    Hi @DataVitalizer ,
    Just wanted to check if you had the opportunity to review the suggestion provided?
    If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
    Thank You