Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

substruction in subtotals

$
0
0

Hi,

I have a matrix report, and I would like to implement a subtraction in Total instead of SUM.

ColumGroup1

A(group1)

B(group2)

Total (Difference group2 - group1)

Rowgroup1

Rowgroup2

Rowgroup3

Rowgroup4

This is how it looks when it is collapsed.

CoulmGroup

Total (Difference)

a

90

x

-23490

Here is how it looks when I expand it. Instead of -281 for the total it displays -23490 when it is summed up at the higher level.

ColumGroup1

A(group1)

B(group2)

Total (Difference)

a

b

C

d

10

100

90

x

y

Z

W1

300

100

-290

x

y

Z

W2

23500

23508

8

I have been using this in the expression of Total last(Fields!Value.Value) - first(Fields!Value.Value), but does not seem to work. Please note that column A and B are not hard columns they are generated based on grouping.

Any help would be appreciated. 

Thanks,

Recai


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>