Problem with calculated columns

Stimulsoft Reports.NET discussion
Post Reply
HowieD
Posts: 27
Joined: Fri Sep 17, 2010 8:29 am

Problem with calculated columns

Post by HowieD »

Dear Users,

I have created a calculated column where the a fieldvalue is divided by on other fieldvalue. Sometimes it can be the the divisor is zero.
On the data band it is no problem as the field returns 0.
As I want to total the field in the group footer an error is thrown who says that there is a division by zero (0).
What can I do to avoid this division by zero and where should it be done.

Thanks in advance.
H. Dederichs
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Problem with calculated columns

Post by Alex K. »

Hello,

You can use function Div().

Thank you.
HowieD
Posts: 27
Joined: Fri Sep 17, 2010 8:29 am

Problem with calculated columns

Post by HowieD »

Hi Aleksey,

could you be a bit more specific since I'm very new to Stimulsoft.
A deeper explatiation would be highly appreciated.

Regards
H. Dederichs
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Problem with calculated columns

Post by Alex K. »

Hello,

In a calculated column use Div(DataField1,DataField2)
In this case, you have the result of dividing by 0 will not cause error.

Thank you.

HowieD
Posts: 27
Joined: Fri Sep 17, 2010 8:29 am

Problem with calculated columns

Post by HowieD »

Hi Aleksey,

very cool. Work perfect!!!:biggrin:

Regards
H. Dederichs
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Problem with calculated columns

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
HowieD
Posts: 27
Joined: Fri Sep 17, 2010 8:29 am

Problem with calculated columns

Post by HowieD »

Hi Aleksey,

is there any documentation about this or other functions?
Would have help before.

Regards
H. Dederichs
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Problem with calculated columns

Post by Andrew »

Hello,

Sorry no. But we are working on it.

Thank you.
Post Reply