Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
yaseenhamid
Frequent Visitor

Cant enter location variable in SVG code

hi, im trying to add location variable  in following svg code but power bi cant recognize syntax

 

var location = "100"

 

"data:image/svg+xml;utf8,"
        & "<svg xmlns=""http://www.w3.org/2000/svg""   >
   
<path d="M150 0 L75 200 L225 200 Z"></path>
   

</svg>"
 
i want to add location variable instead of 150 in above code (e.g <path d="M location 0 L75 200 L225 200 Z"></path>
1 REPLY 1
lbendlin
Super User
Super User

var location = "100"
return "data&colon;image/svg+xml;utf8,<svg xmlns=""http://www.w3.org/2000/svg""><path d=""M" & location & " 0 L75 200 L225 200 Z""></path></svg>"

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.