在 Power BI 中作为没有计算列或计算表的切片器进行测量
Measure as a slicer without calculated columns or calculated tables in Power BI
我无法使用计算列或计算 tables,但我正在努力将度量设置为切片器。
我有一个 table 就像这样:
我添加了两个度量,它们给出了每个 X 的不同 Y 的计数和列表:
Distinct Y in each X - Count =
CALCULATE (
DISTINCTCOUNT ( Table1[Y] ),
ALLEXCEPT ( Table1, Table1[X] )
)
和
Distinct Y in each X - List =
CALCULATE (
CONCATENATEX (
DISTINCT ( Table1[Y] ),
Table1[Y],
", "
),
ALLEXCEPT ( Table1, Table1[X] )
)
现在我需要的是:
- 度量"Distinct Y in each X, Count"作为切片器
- 视觉效果 table 对切片器做出反应。此视觉对象 table 仅包含 W 和 Z,如下所示:
我无法使用计算列或计算 tables。您知道 Power BI 是否可行吗?
非常感谢
您不能在 Power BI 的切片器中使用度量。
要实现您需要的功能,您必须使用计算列或计算列 table。
我无法使用计算列或计算 tables,但我正在努力将度量设置为切片器。 我有一个 table 就像这样:
我添加了两个度量,它们给出了每个 X 的不同 Y 的计数和列表:
Distinct Y in each X - Count =
CALCULATE (
DISTINCTCOUNT ( Table1[Y] ),
ALLEXCEPT ( Table1, Table1[X] )
)
和
Distinct Y in each X - List =
CALCULATE (
CONCATENATEX (
DISTINCT ( Table1[Y] ),
Table1[Y],
", "
),
ALLEXCEPT ( Table1, Table1[X] )
)
现在我需要的是:
- 度量"Distinct Y in each X, Count"作为切片器
- 视觉效果 table 对切片器做出反应。此视觉对象 table 仅包含 W 和 Z,如下所示:
我无法使用计算列或计算 tables。您知道 Power BI 是否可行吗?
非常感谢
您不能在 Power BI 的切片器中使用度量。
要实现您需要的功能,您必须使用计算列或计算列 table。