SSRS Report running Total using Expression?

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.

Advertisements

One Response to SSRS Report running Total using Expression?

  1. This issue had me bothered for a couple of months, i had to manually edit the report generating class in x++ for each report. This has made my job a lot easier!
    Thanks Amir!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: