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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
October NL Carousel

Fabric Community Update - October 2024

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