Sample Header Ad - 728x90

Divide by 0 error in ssrs

0 votes
1 answer
541 views
I have an SSRS Report with a lot of calculations. I have a function with the report that supposed to take care divide by 0 error but I still get the error. The function code is ` Function Divide(Numerator as Double, Denominator as Double) If Denominator = 0 Then Return 0 Else Return Numerator/Denominator End If End Function ` I also have a expression that is `=Code.Divide(ReportItems!Textbox41.Value, Fields!mnypotientalRentTotal.Value)' I have no idea how to fix the divide by 0 error any ideas would be great.
Asked by Jeannie Ramirez (1 rep)
Sep 8, 2022, 09:17 PM
Last activity: Jul 13, 2025, 08:03 AM