在具有多个列的列组中编写SUM语句

时间:2018-10-25 18:32:48

标签: reporting-services

请查看图片以回答我的问题

Question and example typed in word

1 个答案:

答案 0 :(得分:0)

您需要将字段TotalCamp的值减去其他两个字段(OT,HRRG)。因此,您对薪金的表达应如下所示:

=Fields!TotalCamp.Value - (Fields!OTAmount.Value + Fields! HRRGAmount.Value)

如果您将tablix分组,则还需要添加范围:

=(Fields!TotalCamp.Value, "YourGroupName") - ((Fields!OTAmount.Value, "YourGroupName") + (Fields!HRRGAmount.Value, "YourGroupName"))