代码之家  ›  专栏  ›  技术社区  ›  Randy Minder

使用筛选器计算,但忽略现有筛选器

dax
  •  0
  • Randy Minder  · 技术社区  · 7 年前

    我的DAX度量如下所示:

    61 to 90 Days = CALCULATE(Sum(AccountsPayableDocument[DocumentBalance]), AgingBucket2[BucketId] = 4). 
    

    1 回复  |  直到 7 年前
        1
  •  1
  •   Alexis Olson    7 年前

    这就是 ALL 函数用于。它删除括号内指定的表或列上的所有筛选器。

    61 to 90 Days =
    CALCULATE(
        SUM(AccountsPayableDocument[DocumentBalance]),
        ALL(AccountsPayableDocument),
        AgingBucket2[BucketId] = 4
    )