我在 SSRS 中创建了以下矩阵:
[Account] Total
Deposits [Sum(Deposit)] [Sum(Deposit)]
Withdrawals [Sum(Withdrawals)] [Sum(Withdrawals)]
Withdrawal Ratio ?????????? =Sum(Fields!Withdrawals.Value, "DataSet1")/Sum(Fields!Deposit.Value, "DataSet1")
例子:
Account A.......Account B Total
Deposits 75..............25...............100
Withdrawals 10..............25...............35
Withdrawal Ratio 13%.............100%.............35%
源数据:
Date........Account.....Deposits.....Withdrawals
2013/08/01..A...............20................2
2013/08/02..A...............20................2
2013/08/03..A...............20................2
2013/08/04..A...............15................4
2013/08/01..B...............10................8
2013/08/02..B...............15................17
[Account] 列是一个组。目前我们有两种不同类型的账户。我正在尝试计算提款率(提款/存款)。它适用于总数。但我不能让它为个别团体工作。它显示合并帐户的比率。
有什么想法吗?