如何解决Reporting Services的错误

时间:2012-03-21 04:06:18

标签: sql-server-2008 reporting-services group-by ssrs-2008

我使用报告创建了报告,但我对下面的案例感到头晕

这是我的查询结果:


___________________________________________________________________
Col1      | Col2             | Col3   | Col4          | Col5
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Budget01  | Description 1    | $2300  | Commitment 1  | $1000
Budget01  | Description 1    | $2300  | Commitment 2  |  $100
Budget01  | Description 1    | $2300  | Commitment 3  |  $600
Budget01  | Description 1    | $2300  | Commitment 4  |  $200
Budget02  | Description 2    | $5000  | Commitment 5  |  $500
Budget03  | Description 3    | $1000  | Commitment 6  |  $200

我想在Reporting Services中得到如下结果:


___________________________________________________________________
Col1      | Col2             | Col3   | Col4          | Col5
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Budget01  | Description 1    | $2300  | 
          |                  |        | Commitment 1  | $1000
          |                  |        | Commitment 2  |  $100
          |                  |        | Commitment 3  |  $600
          |                  |        | Commitment 4  |  $200
Budget02  | Description 2    | $5000  | Commitment 5  |  $500
Budget03  | Description 3    | $1000  | Commitment 6  |  $200
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
SUB TOTAL                      $8300  |               | $2600
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Please find a col3's sub total is as i want $8300

但实际上,为什么报告服务的总和是等于= $ 15200 我该如何解决这个问题?

感谢您的进步。

1 个答案:

答案 0 :(得分:3)