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

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

sridhar3004
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
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 - 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
Sridhar
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.19 seconds. Powered By: Snitz Forums 2000