Forum Discussion
Custom icons using svg code help
- 1 year ago
Hi ACraig08 ,
Thanks for posting your query in the Microsoft Fabric Community. I tried using inline SVG (data:image/svg+xml) in a calculated column and applied it through conditional formatting in a table visual. However, Power BI doesn’t support rendering SVG data URIs inside table visuals. Instead of displaying the icon, it shows the raw SVG code as plain text.
This appears to be a known limitation in Power BI, where image rendering only works with actual image URLs pointing to hosted files (PNG or JPG from the web), rather than inline SVG strings.
As an alternative, you can create icons using conditional formatting, following the approach outlined below.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
Hi ACraig08 ,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.