Crosstab - subtotal

Stimulsoft Reports.NET discussion
Post Reply
sun2008
Posts: 9
Joined: Wed Oct 19, 2011 6:05 am

Crosstab - subtotal

Post by sun2008 »

Hi,

In my crosstab I have 3 group subtotals - Total Earnings, Total Deductions, Total Misc
And the Grand Total row (Total Earnings + Total Deductions + Total Misc)

Grand Total Should be :

Grand Total = Total Earnings - Total Deductions. (ignore Total Misc)


Row Description Dept 1 Dept 2
=== =====================
1 p1 100.00 50.00
2 p2 50.00 0.00
TOTAL EARNINGS 150.00 50.00

3 D1 50.00 50.00
TOTAL DEDUCTIONS 50.00 50.00

4. M1 90.00 5.00
TOTAL MISC 90.00 5.00

Grand TOTAL 100.00 0.00 <=


How to make this work ?

Thanks









HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Crosstab - subtotal

Post by HighAley »

Hello.
sun2008 wrote:In my crosstab I have 3 group subtotals - Total Earnings, Total Deductions, Total Misc
And the Grand Total row (Total Earnings + Total Deductions + Total Misc)

Grand Total Should be :

Grand Total = Total Earnings - Total Deductions. (ignore Total Misc)


Row Description Dept 1 Dept 2
=== =====================
1 p1 100.00 50.00
2 p2 50.00 0.00
TOTAL EARNINGS 150.00 50.00

3 D1 50.00 50.00
TOTAL DEDUCTIONS 50.00 50.00

4. M1 90.00 5.00
TOTAL MISC 90.00 5.00

Grand TOTAL 100.00 0.00 <=


How to make this work ?
Please, try to use variables. If you couldn't do it. Please, send us your report template with data.

Thank you.
sun2008
Posts: 9
Joined: Wed Oct 19, 2011 6:05 am

Crosstab - subtotal

Post by sun2008 »

Hi Aleksey,

Please refer attached file.

Thanks.
Attachments
1372.crosstabmrt.zip
(3.59 KiB) Downloaded 144 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Crosstab - subtotal

Post by Alex K. »

Hello,

Please check the modified project in attachment.

Thank you.
Attachments
1373.CrossTabRep1_modified.mrt
(22.09 KiB) Downloaded 156 times
sun2008
Posts: 9
Joined: Wed Oct 19, 2011 6:05 am

Crosstab - subtotal

Post by sun2008 »

Hi,

Thanks. It's working now.

How do I do this :

[1] Change row total caption from "Total" to "Total Income", "Total Dedcuctions"?
[2] Hide the total row for "MISC" - I do not need the sub total for "MISC" group


Thanks.



Post Reply