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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SHTELVIS
Frequent Visitor

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

SHTELVIS_0-1709138206024.png

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 4
v-xuxinyi-msft
Community Support
Community Support

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

Hi @v-xuxinyi-msft 

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

SHTELVIS_0-1709212154706.png

 

Regards

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

 

PijushRoy
Super User
Super User

Hi @SHTELVIS 

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

PijushRoy_0-1709141138310.png

 


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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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