【发布时间】:2021-02-12 15:39:14
【问题描述】:
我有两列
CustomerCode | Segmentation
AU656 | abc
AU765 | cdf
AU563 | abc
AU235 | abc
AU324 | opr
AU908 | opr
AU123 | pqr
AU234 |pqr
我必须找到一个不同的 CustomerCode 计数,其中分段为“abc”、“cdf”和“pqr”,并将其除以 CustomerCodes 的总数(全部)。
我创建了一个度量 -
#RSP =
CALCULATE (
DISTINCTCOUNT ( 'Table'[CustomerCode] ),
FILTER ( ALL ( 'Table' ), 'Table'[Segmentation] = "abc" ),
'Table'[Segmentation] = "cdf",
'Table'[Segmentation] = "opr"
)
但是,这没有任何价值。我是否使用错误的过滤器? 如何计算?
【问题讨论】:
标签: powerbi dax powerbi-desktop