I am working on SSRS 2008. A simple tablix with one row group (product) and one column group (month), at the intersection of row and column is the data (number of sales). Now I add a total row, which equals to sum(number of sales) for each month. Also I add a total column, which equals to sum(number of sales) for each product. At the intersection of the total row/column, the value is the grand total sum of number of sales for all products and all months. Now I want to change this to total of all products but for all months except the last month. E.g. there are product 1, 2, 3 and month 1, 2, 3. I want total of sales for product 1,2, 3 and month 1,2 in that cell. How to do that? Something like this pic, in the lower right corner, there should be 6 (for Feb and Jan).
----------update, added script to create this report, so maybe someone can try it.
The dataset:
select 'Jan' as mon, 'p1' as prod, 1 as id
union all
select 'Feb' as mon, 'p1' as prod, 1
union all
select 'Mar' as mon, 'p1' as prod, 1
union all
select 'Jan' as mon, 'p2' as prod, 1
union all
select 'Feb' as mon, 'p2' as prod, 1
union all
select 'Mar' as mon, 'p2' as prod, 1
union all
select 'Jan' as mon, 'p3' as prod, 1
union all
select 'Feb' as mon, 'p3' as prod, 1
union all
select 'Mar' as mon, 'p3' as prod, 1
The report definition:
There is one row group (group on prod), one column group (group on mon). Actually, I can do that in T-SQL by calculating total without last month then join this back to the main dataset. But just wondering is it achievable by SSRS alone.