top of page

SSRS: Running total

  • Marek Vavrovic
  • Aug 31, 2021
  • 1 min read

Step 1 Create a data source and a dataset

ree

Step 2

Add an extra field for the Running total.

Add an expression.

ree

Step 3

Go to Common Functions > RunningValue

Add RunningValue function

Add field you want the create running total for. (Fields!Units.Value)

Add a name of the aggregate function (SUM)

Specify the scope as string, means, it needs to be in double quotes. In this case it is the whole dataset ("DataSet1")

ree

Report preview

ree

Step 4

I have a field called Region and I want to create a running total by region.

4.1 Add the Region column into the table.

4.2 If you want to create the running total by region, the data need to be grouped by Region first. Otherwise you will get an error.

ree

Step 5

Add a column for cumUnitsByRegion, add expression.

ree

Step 6:

Use RunnigValue function to create the running total by Region.

ree

Report preview.


ree

If you are creating a running total by a subcategory, data needs to be grouped by the subcategory first.











Comments


Subscribe Form

©2020 by MaVa Analytics. Proudly created with Wix.com

bottom of page