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 : 06:06:23
|
I've created a report as followsThe report has 4 levels of grouping. The Level1 level2 level3 level4 Dr CrG1 SG1 L1 SL1 100 30 SL2 50 0 SL3 10 40 SL4 0 25G2 SG2 L2 SL5 25 0 SL6 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 0 SG1 120 0 L1 120 0 SL1 70 0 SL2 50 0 SL3 0 30 SL4 0 25G2 50 0 SG2 50 0 L2 50 SL5 25 0 SL6 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:33:56
|
I've got the solution. There is a workaround to this by writing a piece of code Thanks againSridhar |
|
|
|
|
|