在 Dax 中使用过滤功能时如何阻止 Power Bi 度量隐藏其他字段
How to stop Power Bi measure from hiding other fields when using the filter function within Dax
我使用 DAX 在 Power BI 中创建了一个度量,它获取 'item' 列中特定项目的总数量。但是,当我在 Power Bi 的 table 中使用该度量时,它充当过滤器并隐藏其他项目,使其不显示在 table 中。我该如何处理?我现在需要为每个项目创建一个度量吗?
这是我的 DAX 度量表达式:
Qty 'item name'=
Calculate
(
Sum
(
table[qty]
)
,
FILTER
(
table,
table[Item]="item name"
)
)
在您的可视化字段列表中,select 显示没有数据的项目 字段下拉菜单中的选项。
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-show-items-no-data
我使用 DAX 在 Power BI 中创建了一个度量,它获取 'item' 列中特定项目的总数量。但是,当我在 Power Bi 的 table 中使用该度量时,它充当过滤器并隐藏其他项目,使其不显示在 table 中。我该如何处理?我现在需要为每个项目创建一个度量吗?
这是我的 DAX 度量表达式:
Qty 'item name'=
Calculate
(
Sum
(
table[qty]
)
,
FILTER
(
table,
table[Item]="item name"
)
)
在您的可视化字段列表中,select 显示没有数据的项目 字段下拉菜单中的选项。
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-show-items-no-data