Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Drill down report

Author  Topic 

sridhar3004
Starting Member

34 Posts

Posted - 2012-07-13 : 06:06:23
I've created a report as follows
The report has 4 levels of grouping. The

Level1 level2 level3 level4 Dr Cr
G1
SG1
L1
SL1 100 30
SL2 50 0
SL3 10 40
SL4 0 25
G2
SG2
L2
SL5 25 0
SL6 50 25


Whenever there are values in Dr & Cr at each level, the value should be shown in the column which has the greater value
for exaample, for SL6 above the Dr value is 50 and Cr value = 25, the final value shown will be 25 in Dr

I've used the IIF statement in SSRS for this and the output comes out fine.

My only hiccup is the final total which should ideally be the sum of the LEVEL1 group totals

Level1 level2 level3 level4 Dr Cr
G1 120 0
SG1 120 0
L1 120 0
SL1 70 0
SL2 50 0
SL3 0 30
SL4 0 25

G2 50 0
SG2 50 0
L2 50
SL5 25 0
SL6 25 0

I want the report footer to be G1 + G2
.i.e. 170 in Dr column and 0 in Cr column

How can I achieve this?
Any help is appreciated

Thanks
Sridhar



sridhar3004
Starting Member

34 Posts

Posted - 2012-07-16 : 01:33:56
I've got the solution. There is a workaround to this by writing a piece of code

Thanks again
Sridhar
Go to Top of Page
   

- Advertisement -