【问题标题】:PowerPivot Measure Count Multiple columns with a filterPowerPivot Measure Count Multiple columns with a filter
【发布时间】:2016-08-08 00:48:26
【问题描述】:

我在 Excel 中使用 PowerPivot,并希望根据筛选器获取多列的计数总和。我目前的方程式是:

Measure1:=COUNT(Table1[Attribute1])+COUNT(Table1[Attribute2])+COUNT(Table1[Attribute3])+COUNT(Table1[Attribute4])

但我只想在“门”列显示 A 或 B 时才包含计数。属性列包含二进制数据 (0/1),有时故意为空白。有没有更好的计数方法,如何添加过滤器?

【问题讨论】:

    标签: excel filter count powerpivot measure


    【解决方案1】:

    使用计算公式,您可以添加过滤器上下文。

    =calculate(countrows(Table1),Table1[Gate]="A")
    

    示例:

    【讨论】:

      猜你喜欢
      • 2019-12-22
      • 1970-01-01
      • 2022-12-02
      • 2021-09-08
      • 1970-01-01
      • 2014-06-28
      • 1970-01-01
      • 2023-04-07
      • 2022-12-02
      相关资源
      最近更新 更多