Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Matrix
Card
You only need a measure and mark it as image URL:
SVGChart =
VAR t=GENERATESERIES(1,10)
VAR tPlus=GENERATE(SELECTCOLUMNS(t,"Value1",[Value]),t)
VAR tPlusPlus=ADDCOLUMNS(tPlus,"Index",RANKX(tPlus,[Value]+[Value1]/100,,ASC))
VAR tWaffle=ADDCOLUMNS(tPlusPlus,"circle","<circle cx='"&[Value]*10-5&"' cy='"&[Value1]*10-5 &"' r='4' fill='"&IF([Index]<=ROUND([KPI]*100,0),"Grey","LightGrey")&"' fill-opacity='0.4'/>")
VAR Chart=
"data :image/svg+xml;utf8,"&"
<svg xmlns='http://www.w3.org/2000/svg' height='100' width='100'>"&
CONCATENATEX(tWaffle,[circle])&"
<!-- Data label -->
<text x='50' y='50' font-size='25' text-anchor='middle' dominant-baseline='middle' fill='"& IF([KPI]>=0.3,"DarkCyan","Tomato")&"'>"&ROUND([KPI]*100,0)&"%"&"</text>
</svg> "
Return
IF(HASONEVALUE('Table'[StoreID]),Chart,BLANK())
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
5 | |
2 | |
1 | |
1 | |
1 |