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

问题描述

我有一个LOD计算字段,我将其命名为“ Total MO”,旨在对下表中MeasureOne的所有值求和。

看起来像这样...

{FIXED: SUM([MeasureOne])}

它插入的表看起来像这样...

╔══════════════╤═════════════════════════╤═════════════════════════╤═══════════════════════════════════╗
║              │ 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值。我将其称为“排除”。 注意:对我来说,这是一个大于符号,但无论出于何种原因,它都以这种方式起作用(可能必须翻转“排除”,“包含”-如果可以,请告诉我)。

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

当我这样做时,我的桌子看起来像这样……

╔══════════════╤═════════════════════════╤═════════════════════════╤═══════════════════════════════════╗
║              │ 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      ║
╚══════════════╧════════════╧════════════╧════════════╧════════════╧════════════╧════════════╧═════════╝

任何建议将不胜感激!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)