The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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.
User | Count |
---|---|
65 | |
62 | |
59 | |
53 | |
28 |
User | Count |
---|---|
181 | |
82 | |
67 | |
47 | |
44 |