ssrs总和特定组的组总数并减去特定组

时间:2017-10-31 19:49:38

标签: reporting-services ssrs-2008

我有这样的报告:

Expenses SSRS report

我已将组名称分组,称为费用类型。理想的费用类型有三种类型,1,2和3.我用它们总计在蓝线的总计。

现在我想将总计总数添加到棕褐色线,

我想要提交棕褐色总计费中的(组1的总数+组3的总数) - 组2的总数。

有人可以帮我写这个表达吗?

2 个答案:

答案 0 :(得分:0)

您可以使用报告项目来实现您想要的目标

例如..

{{1}}

以上假设组框的属性名称为group1total,group2total和group3total

答案 1 :(得分:0)

在计算总数之前,使用/// .... /// You can also use this OPERATOR TO COMPARE A NON-OPTIONAL VALUE TO AN /// OPTIONAL that wraps the same type. The non-optional value is wrapped as an /// optional before the comparison is made. In the following example, the /// `numberToMatch` constant is wrapped as an optional before comparing to the /// optional `numberFromString`: /// /// let numberToFind: Int = 23 /// let numberFromString: Int? = Int("23") // Optional(23) /// if numberToFind == numberFromString { /// print("It's a match!") /// } /// // Prints "It's a match!" /// /// .... public func ==<T>(lhs: T?, rhs: T?) -> Bool where T : Equatable IIF()检查每个值的类别。

SWITCH()