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:
i've created simple report grouped grpmonthyear
:
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:
so helps - keep ordering of elements of table in mind specific parent scope use if there nested groups.
Comments
Post a Comment