【问题标题】:Matrix year to year percentage calculation矩阵逐年百分比计算
【发布时间】:2017-08-04 14:39:27
【问题描述】:

寻找一种方法来计算 ssrs 矩阵的年增长率。例如。对于 2017 年 5 月,它会做 - (May-2017-May2016)/May2016。

附上截图。单位是一列。我在数据中使用运行值函数。

行组-类型 列组-日期

谢谢。

示例

【问题讨论】:

  • 在SSRS中可以这样做吗?

标签: reporting-services ssrs-2008 ssrs-2012 ssrs-2008-r2 reportingservices-2005


【解决方案1】:
Below is the similar solution of your problem -
Following are the tables and data used for report creation-
create table dslocation
(
locationId int
 ,    locationName varchar(20)
  ,   mmpremium int
  , sspremium int
)
INSERT INTO dslocation
VALues (1, 'SANDY', 1000,'')
,(2, 'RANSY', 2000,'')

create table prevdslocation
(
plocationId int
 ,    plocationName varchar(20)
  ,   pmmpremium int
  , psspremium int
)

INSERT INTO prevdslocation
VALues (1, 'SANDY', 2000,'')
,(2, 'RANSY', 3000,'')

Then add a column and write following expression in placeholder-
=Fields!mmpremium.Value-join(LookupSet(Fields!locationId.Value,Fields!plocationId.Value,Fields!pmmpremium.Value,"prevdslocation"),",")

Following is the screenshot of the solution -
[![enter image description here][1]][1]

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-10-03
    • 2016-12-07
    • 1970-01-01
    • 2022-06-15
    • 1970-01-01
    • 2021-10-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多