Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom code show zero instead of Grand Total amount, but when export the dollar amount is shown

Status
Not open for further replies.
Sep 22, 2013
18
US
Hello,

I am using 2014 SSRS I created a custom code to get Grand Totals for a monthly trend report, when I generate the report in IE I get zeros Grand Total amounts on the report, but when I export the report to Excel the Grand Total is shown and is correct. Why is this happening? How can I show the Grand Total amount in IE.

Here is my Code:

Dim public nettotal1 as Double

Public Function Getvalue1 (ByVal subtotal AS Double) AS Double

Nettotal1 = nettotal1 + subtotal

return subtotal

End Function

Public Function Totalvalue1()

return nettotal1

End Function

Code to start summarizing on the row.

=code.Getvalue1(ReportItems!January.Value)

Code to get Grand Total Amount.

=code.Totalvalue1()
‌‌‌‌‌‌‌‌‌

See below. Any tips will be appreciated. Thank you in advance

Example of report:



GL Account Account Description January February March
73415 Computer Expense $35,000 $2,416 $555
73420 Warehouse Expense $205 $456 $26
73450 Operation Expense $140 $654 $78
Grand Total $0 $0 $0


When the report is exported to Excel the Grand Total Shows

GL Account Account Description January February March
73415 Computer Expense $35,000 $2,416 $555
73420 Warehouse Expense $205 $456 $26
73450 Operation Expense $140 $654 $78
Grand Total $35,345 $3,526 $659

‌‌‌‌‌‌‌‌‌
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top