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.
Author |
Topic |
sridhar3004
Starting Member
34 Posts |
Posted - 2012-07-13 : 08:48:07
|
I've created a report as followsThe report has 4 levels of grouping. The Level1 level2 level3 level4 Dr CrG1 SG1 L1 SL1 100 30SL2 50 0SL3 10 40SL4 0 25G2 SG2 L2 SL5 25 0SL6 50 25Whenever there are values in Dr & Cr at each level, the value should be shown in the column which has the greater valuefor exaample, for SL6 above the Dr value is 50 and Cr value = 25, the final value shown will be 25 in DrI'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 totalsLevel1 level2 level3 level4 Dr CrG1 120 0SG1 120 0L1 120 0SL1 70 0SL2 50 0SL3 0 30SL4 0 25G2 50 0SG2 50 0L2 50 SL5 25 0SL6 25 0I want the report footer to be G1 + G2.i.e. 170 in Dr column and 0 in Cr columnHow can I achieve this?Any help is appreciatedThanksSridhar |
|
sridhar3004
Starting Member
34 Posts |
Posted - 2012-07-16 : 01:31:34
|
I've got the solution. There is a workaround to this by writing a piece of code Thanks againSridhar |
|
|
|
|
|