如何更改我的 LOD 度量聚合以反映我的排除过滤器?

How can I change my LOD measure aggregation to reflect my exclusion filter?

我有一个我命名为 'Total MO' 的 LOD 计算字段,旨在对下面 table 中 MeasureOne 的所有值求和。

看起来像这样...

{FIXED: SUM([MeasureOne])}

插入的 table 看起来像这样...

╔══════════════╤═════════════════════════╤═════════════════════════╤═══════════════════════════════════╗
║              │ DimensionTwo            │ DimensionTwo            │ Grand Total                       ║
╠══════════════╪════════════╤════════════╪════════════╤════════════╪════════════╤════════════╤═════════╣
║ DimensionOne │ MeasureOne │ MeasureTwo │ MeasureOne │ MeasureTwo │ MeasureOne │ MeasureTwo │ TotalMO ║
╟──────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼─────────╢
║ X            │            │            │ 8          │ 4          │ 8          │ 4          │ 18      ║
╟──────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼─────────╢
║ Y            │ 6          │ 2          │            │            │ 6          │ 2          │ 18      ║
╟──────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼─────────╢
║ Z            │            │            │ 4          │ 6          │ 4          │ 6          │ 18      ║
╟──────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼─────────╢
║ Grand Total  │ 6          │ 2          │ 12         │ 10         │ 18         │ 12         │ 18      ║
╚══════════════╧════════════╧════════════╧════════════╧════════════╧════════════╧════════════╧═════════╝

然后我构建了一个排除过滤器,如果 MeasureOne 小于 5,它作为一个维度填充以删除 DimensionOne 值。我将其称为“排除”。 注意:对我来说,这是一个大于号,但无论出于何种原因,它都是这样工作的(可能必须翻转 'Exclude'、'Include' - 如果我这样做,请告诉我)。

IIF([MeasureOne]>5, 'Exclude', 'Include')

当我这样做时,我的 table 看起来像这样...

╔══════════════╤═════════════════════════╤═════════════════════════╤═══════════════════════════════════╗
║              │ DimensionTwo            │ DimensionTwo            │ Grand Total                       ║
╠══════════════╪════════════╤════════════╪════════════╤════════════╪════════════╤════════════╤═════════╣
║ DimensionOne │ MeasureOne │ MeasureTwo │ MeasureOne │ MeasureTwo │ MeasureOne │ MeasureTwo │ TotalMO ║
╟──────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼─────────╢
║ X            │            │            │ 8          │ 4          │ 8          │ 4          │ 18      ║
╟──────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼─────────╢
║ Y            │ 6          │ 2          │            │            │ 6          │ 2          │ 18      ║
╟──────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼─────────╢
║ Grand Total  │ 6          │ 2          │ 8          │ 4          │ 14         │ 6          │ 18      ║
╚══════════════╧════════════╧════════════╧════════════╧════════════╧════════════╧════════════╧═════════╝

如何保留过滤器(或以其他方式过滤)并让 LOD 计算字段 'TotalMO' 反映 MeasureOne 的新总数,使其看起来像这样?...

╔══════════════╤═════════════════════════╤═════════════════════════╤═══════════════════════════════════╗
║              │ DimensionTwo            │ DimensionTwo            │ Grand Total                       ║
╠══════════════╪════════════╤════════════╪════════════╤════════════╪════════════╤════════════╤═════════╣
║ DimensionOne │ MeasureOne │ MeasureTwo │ MeasureOne │ MeasureTwo │ MeasureOne │ MeasureTwo │ TotalMO ║
╟──────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼─────────╢
║ X            │            │            │ 8          │ 4          │ 8          │ 4          │ 14      ║
╟──────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼─────────╢
║ Y            │ 6          │ 2          │            │            │ 6          │ 2          │ 14      ║
╟──────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼─────────╢
║ Grand Total  │ 6          │ 2          │ 8          │ 4          │ 14         │ 6          │ 14      ║
╚══════════════╧════════════╧════════════╧════════════╧════════════╧════════════╧════════════╧═════════╝

如有任何建议,我们将不胜感激!

将您的排除过滤器设置为上下文,以便反映 LOD。