Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I like working with dynamic images by using SVG's. I created a measure and added some code to make it dynamic. However, it's not working and I don't understand what's going on.
The image should be filled for 50% with the color #b0974d, but it shows the image completely, and in black. I hope someone can explain why it's not working.
Since the code is very long, I uploaded a file. But only the first 21 lines are of importance
https://docs.google.com/document/d/1km0tZOrEoZ4UxHTL053i_ALY4undqerjg2L3UwogGGY/edit?usp=sharing
Solved! Go to Solution.
The measure is (finally) working. I discovered that 'pt' in width and in height can be removed. And you've to multiply width and height by 10 in the clipPath. I've shared the measure in the file below:
https://docs.google.com/document/d/1ekQUsFefuKhmtZEULzRqwXOlNBBFTPnUOqA7oDm6eI4/edit?usp=sharing
The measure is (finally) working. I discovered that 'pt' in width and in height can be removed. And you've to multiply width and height by 10 in the clipPath. I've shared the measure in the file below:
https://docs.google.com/document/d/1ekQUsFefuKhmtZEULzRqwXOlNBBFTPnUOqA7oDm6eI4/edit?usp=sharing
Hi @Anonymous ,
Please refer to the following topic to see if it helps you.
What if you want to change the color? Simply add a fill attribute to the SVG.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Thanks for your reply. I already using the code 'fill' in the DAX measure, and it's not responsive to any change of color. So unfortunately, that doesn't work.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!