在 ssrs 2008 中添加一个 table 列根据其他列中的值计算比率

Adding a table column calculating ratio based on the values in other columns in ssrs 2008

我在 ssrs 2008 中有一个 table 喜欢

Name      Date:[Date]
[Name]    [Amount]

示例输出:

Name      Date:2015-04-01   Date:2016-04-01
John             50               100
Jack             150              135
Mike             250              250

包含 [Amount] 信息的列有一个基于 Date 的列组。 我想要的是添加另一列显示 Change Ratio,例如:

Name      Date:2015-04-01   Date:2016-04-01   ChangeRatio
John             50               100             100%
Jack             150              135             -10%
Mike             250              250             0%

我正在寻找一种在 rdl 上提供它的方法,而无需修改 SQL 中的存储过程。我该如何执行?

如有任何帮助,我们将不胜感激!

谢谢。

在右外边再增加一列,称为变化率,将其格式设置为百分比。

找到日期列的名称,并在通过 reportitems! 的变化率表达式中使用它。附件是我如何设法完成这个的细目。