效果:
排名
1排名 项目 =
RANKX(
ALLSELECTED('DIM Project'[PROJECT_NAME]),[AMT])
SVG=
VAR _Rank = [1排名 项目]
RETURN
"data:image/svg+xml;utf8,
<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48'>
<circle cx='24' cy='24' r='10' <!-- 圆形 -->
fill='white'
stroke='black'
stroke-width='2'/>
<text x='24' y='24' <!-- 字体 -->
text-anchor='middle'
dominant-baseline='central'
font-size='11'
font-family='Arial'
fill='black'>"& _Rank & "</text>
</svg>"
把这个度量值类型设置成图像URL
出来之后可能行高特别高,可以在图像大小进行调整