0

我正在过滤一个 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 % 行中合并来解决当前问题,但肯定还有其他问题。指标的行为方式是否会添加不属于组的值?

4

1 回答 1

2

我意识到了同样的事情,这可能是 SSRS 指标中的错误,作为解决方法,您可以在单元格内编写一个表达式以检查另一个单元格并检查是否有数据然后显示单元格内的值,如果没有则什么都不写.

喜欢:=iif(count(Fields!Field1.Value)>1,"",Fields!Field2.Value)

于 2012-11-26T19:19:08.137 回答