This is a migrated thread and some comments may be shown as answers.

Division by Zero not working

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 11 Nov 2010, 02:04 PM
I'm running into trouble and the sample code is not working.  This is the code block and it returns 0 always.  How can this be fixed.  I need to roll this report out and can not do so because of this bug.
= IIf((Fields.QuotedLeads + Fields.QuotedAuditLeads) > 0,(Fields.ClosedLeads + Fields.CloseAuditLeads)/IIf((Fields.QuotedLeads + Fields.QuotedAuditLeads) > 0, (Fields.QuotedLeads + Fields.QuotedAuditLeads),1),0)

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 15 Nov 2010, 05:52 PM
Hello Joe,

We have noticed that you are checking for zero (Fields.QuotedLeads + Fields.QuotedAuditLeads) > 0 however you're using (Fields.ClosedLeads + Fields.CloseAuditLeads) for dividend. Let us know whether the suggestion helps and for further assistance we will highly appreciate if you open a support thread and send us a sample runnable project that exhibits the issue thus we will be able to debug it locally and advise you further.

Sincerely yours,
Peter
the Telerik team
See What's New in Telerik Reporting in Q3 2010 on Wednesday, November 17, 11am Eastern Time: Register here>>
Tags
General Discussions
Asked by
Joe
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or