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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 Development Tools
 Reporting Services Development
 Drill down report
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

34 Posts

Posted - 07/13/2012 :  06:06:23  Show Profile  Reply with Quote
I've created a report as follows
The report has 4 levels of grouping. The

Level1 level2 level3 level4 Dr Cr
SL1 100 30
SL2 50 0
SL3 10 40
SL4 0 25
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


Starting Member

34 Posts

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

Thanks again
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000