在 DAX 中使用文本格式化度量

Formatting measure with text in DAX

我想用文本和数值创建度量,例如: "中国客户数:" & [measure]7,900

[measure] 被格式化为分隔千位,但在串联值中没有分隔。你知道我该如何解决这个问题吗?

格式是在度量上设置的,但是一旦在新度量中使用该度量,这个新度量就会决定整个输出的格式。

您需要围绕您的度量调用 FORMAT 并指定您希望在输出中使用千位分隔符,并将其与您的字符串连接:

# Cust in China :=
"The number of customers in China: " &
FORMAT ( [measure] , "#,###" )