_Hi,我在Powerbi中放入了一个HTML添加可视化的功能DAX/HTML以下措施:
VAR _PriceInfo =
"<b>" & _CurrentPrice & "<br><font size = -2></b>" &
IF(
[Price Variation] >= 0,
"<font color = " &[Color Green] & ">" & "+ " & _Variation,
"<font color = " &[Color Red] & ">" & _Variation
)
但我想把它转换成HTML5.我做了以下try ,但对if部分不起作用?提前感谢您的帮助!
"<p style='font-weight: bold;'>" & _CurrentPrice & "<br><span style='font-size: small;'></span></p>" &
IF(
[Price Variation] >= 0,
"<span style='color: green; font-weight: bold;'>+ " & _Variation & "</span>",
"<span style='color: red; font-weight: bold;'>" & _Variation & "</span>"
)