Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

SVG measure doesn't work

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

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.

    • Anonymous's avatar
      Anonymous
      Not applicable

      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.