我正在过滤一个 tablix,然后将行(总共 3 个)和列(总共 2 个)分组,没有详细信息部分。一行只有一个分组列的适用值。分组依据将所有值放在正确的单元格中。但是,如果我添加一个指示符,则该列没有适用值的行会从另一行继承数据。添加指标所基于的字段不会进行此更改。这一行(以及其他正常工作的行)的第一列中的指标为空值,即它不应该显示。
数据集:
+---------+---------------+-----------+---------+
| Family | Description | Value |Indicator|
+---------+---------------+-----------+---------+
| A | Something | 5 | 2 |
| A | Another | 2 | 1 |
| B | Yearly Plans | 63 | null |
| B | Weekly Plans | 4 | 2 |
| B | Yearly Qual | .4 | 1 |
| B | Weekly Qual | .2 | 1 |
| B | Purchased % | .76 | null |
+---------+---------------+-----------+---------+
- 为 Family = B 过滤 tablix
- 行组:=iif(Field!Description.Value like " Plans ","Plans",iif(Field!Description.Value like " Qual ","Qualifying",Field!Description.Value))
- 列组:iif(Field!Description.Value like "Yearly*","YTD","Weekly")
没有指标的结果:
+---------------+------------+----------+
| Description | Weekly | YTD |
+---------------+------------+----------+
| Qualifying | .2 | .4 |
| Plans | 4 | 63 |
| Purchased % | .76 | |
+---------------+------------+----------+
带有指标的结果(基于指标字段):
+---------------+--------+---+--------+---+
| Description | Weekly | | YTD | |
+---------------+--------+---+--------+---+
| Qualifying | .2 | - | .4 | - |
| Plans | 4 | + | 63 | |
| Purchased % | .76 | | .4 | - |
+---------------+------------+--------+---+
它应该是什么:
+---------------+--------+---+--------+---+
| Description | Weekly | | YTD | |
+---------------+--------+---+--------+---+
| Qualifying | .2 | - | .4 | - |
| Plans | 4 | + | 63 | |
| Purchased % | .76 | | | |
+---------------+------------+--------+---+
我已经通过在具有空值的 Yearly Purchased % 行中合并来解决当前问题,但肯定还有其他问题。指标的行为方式是否会添加不属于组的值?