reporting services - How to I get cumulative monthly subtotals in SSRS? -


i'm using ssrs create report shows lot of transactions according trade date. i've made group on month , year called 'grpmonthyear'. inside group i've made subgroup on 'tradedate'.

the groups , work perfectly. i'm generating monthly subtotals in footer of group 'grpmonthyear'.

but want cumulative subtotals.

example, if jan'13 totaled $5,000.00 , transactions in feb'13 totaled $7,000.00 monthly subtotal in feb'13 should show me $12,000.00

i tried using

runningvalue(fieldname,sum,'grpmonthyear') 

but doesn't work.

am missing out something?

you need set scope in runningvalue function 1 outside current group, example table's dataset itself.

so like:

runningvalue(fieldname,sum,"dataset") 

here's simple example based on following data:

enter image description here

i've created simple report grouped grpmonthyear:

enter image description here

the month total sum in current group scope.

the cumulative total expression following:

=runningvalue(fields!tradeprice.value, sum , "trades") 

where trades dataset name. gives required results:

enter image description here

so helps - keep ordering of elements of table in mind specific parent scope use if there nested groups.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -