Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Dynamic bubble chart percentages

Hello,    I have dynamics bubble chart .                 The code is here: KPI = VAR kpiColor = "#00BFFF"  VAR kpiBlock = "data&colon;image/svg+xml;utf8,<svg height='400' width=...
  • MFelix's avatar
    6 years ago

    Hi Anonymous ,

     

    Try to change your measure in order to format the OG YTD measure something similar to this:

     

    KPI =
    VAR kpiColor = "#00BFFF"
    VAR kpiBlock =
        "data&colon;image/svg+xml;utf8,<svg height='400' width='400' xmlns='http://www.w3.org/2000/svg'><circle cx='200' cy='200' r='"
            & FORMAT ( [KPI Radius]; "###" ) & "' stroke='" & kpiColor & "' stroke-width='1' fill='" & kpiColor & "' />" & " <text x='50%' y='50%' text-anchor='middle' stroke='balck' stroke-width='2px' dy='.3em'>"
            & FORMAT ( [OG YTD]; "## %" ) & "</text>" & "</svg>"
    RETURN
        IF ( HASONEFILTER ( Finance[Hierarchy Level] ); kpiBlock )