INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

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

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

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

(OP)
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

‌‌‌‌‌‌‌‌‌

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close