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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
wujunmin
Advocate I
Advocate I

Triangle style bar chart by DAX+SVG

Result: 

wujunmin_0-1684486489706.png

Mark the measure below as image URL: 

Chart = 
VAR Max_Value = MAXX ( ALLSELECTED ('table'),[KPI] ) 
VAR SVG ="
    data:image/svg+xml;utf8,
    <svg xmlns='http://www.w3.org/2000/svg' width='300' height='30'>
        <polygon fill='deepskyblue'
          points=' "
             & 300 * [KPI] / Max_Value & ",15
             0,0 0,30'
        />
    </svg>"
RETURN
    SVG

 

wujunmin_1-1684486721024.png

 

0 REPLIES 0

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors