Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Get a single value into an SVG Measure

Hello,   I have created a Pie Chart SVG Measure for which I have to procure an integer that represents the score. The SVG then produces a pie chart with the score.   Here is SVGpourcentage : SV...
  • Anonymous's avatar
    Anonymous
    4 years ago

    I finaly got it to work.

     

    The problem was in the SVG code, specificcaly the line 

    stroke-dasharray='calc("&__pourcent&" * 458.67 / 100) 468.57'

    The numbers 458.67 and 468.57 should be the same, and depend on the circonference of the circle, here 229.33 because radius = 36,5.

    So the correct line is 

    stroke-dasharray='calc("&__pourcent&" * 229.3363 / 100 ) 229.3363' 

    and Power Query/BI returns the correct value by any mean. 

     

    Problem solved