最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

SSRS Report running Total using Expression?

网络文摘 William 2074浏览 0评论

Suppose we have One Parameter –> Balance = 100 and we needs to show running total on each rows as per example below. One of the way is that to write business logic in RDP class and calculate it. Other way is I have found a great method in SSRS EXPRESSIONS to do this work.

firstamt   SecondAmt   ThirdAmt    RunningTotal
  10                         15                  20          145
  02                        05                  01          153
-30                        -20                -03         100

SSRS EXPRESSIONS TO CALCULATE RUNNING TOTALS.


RunningValue(Fields!FirstAmt.Value + Fields!SecondAmt.Value + Fields!ThirdAmt.Value 
             , Sum 
             , Nothing) 
         + Parameters!Balance.Value

You may have to change Nothing to a different Scope depending on how your table is set up, it can be your table group Id or Main table Id of SSRS Report.

转载请注明:ww12345678 的部落格 | AX Helper » SSRS Report running Total using Expression?

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址