Forum Discussion

SHTELVIS's avatar
SHTELVIS
Frequent Visitor
2 years ago

Create a column based on a SVG file

Hi everyone

 

I have some SVG files in my pc local files and i want to create a column based on each SVG file , so i can used it in a button text , the button show something like this

But I have several bottuns and each one has diferent icons and diferent text font and color , I just have SVG file but dont know how to convert that SVG file to a format power BI recognized using any DAX formula or change the SVG to code so Power BI read the code and use it as a text in the button

 

Thanks in advance for your help

4 Replies

  • PijushRoy's avatar
    PijushRoy
    Community Champion

    Hi SHTELVIS 

    Can you convert SVG to Base64 code. 
    Base64 Encode and Decode - Online

     


    Let me know if that works for you


    If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

    Thanks
    Pijush
    Linkedin

  • SHTELVIS's avatar
    SHTELVIS
    Frequent Visitor

    Hi PijushRoy  thanks for your help

     

    However i convert it to BASE 64 and i got a long long text but dont know what to do with the text in power BI to use it as SVG format ,

    I tried to create a mesuare like TEST= " long text in BASE 64" and power BI just return the same text not the image of the SVG file

     

    Thanks in advance for your help

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi SHTELVIS 

     

    To better help you, I'd like to confirm your question with you, are you trying to insert SVG images into columns and then use the button to switch between them?

     

    Best Regards,
    Yulia Xu

    • SHTELVIS's avatar
      SHTELVIS
      Frequent Visitor

      Hi Anonymous 

      What I want to do is just add some icons from figma in the text buttom not change it depending  condition it will be static just that there several icons i need to add to each button of the dashboard, but the icons are very specific designs as the following image so i can not copy and paste , the designs are in Figma thats why i tried to use SVG file

       

      Regards