Add two text fields type

Stimulsoft Reports.NET discussion
Post Reply
andrets13
Posts: 4
Joined: Fri May 15, 2015 9:36 pm

Add two text fields type

Post by andrets13 »

I need to Sum two type text fields and then split in two.
I need to get the average of the sum of two fields.
This should make for each record that is displayed in the DataSet
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Add two text fields type

Post by HighAley »

Hello.

You could use system functions like Sum() and Avg().
If you still need our help, please describe your issue more detailed with samples.

Thank you.
andrets13
Posts: 4
Joined: Fri May 15, 2015 9:36 pm

Re: Add two text fields type

Post by andrets13 »

Text fields are kind and I generate error, I have follows. but it does not work me
{Sum(InfoMateriaBoletinCo.NotaNumEv3, InfoMateriaBoletinCo.NotaNumEv4)}
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Add two text fields type

Post by Alex K. »

Hello,

Please try to use the following expression if need summary by all dataset:

Code: Select all

{Sum(InfoMateriaBoletinCo.NotaNumEv3)  + Sum(InfoMateriaBoletinCo.NotaNumEv4)}
or next for one record:

Code: Select all

{InfoMateriaBoletinCo.NotaNumEv3  + InfoMateriaBoletinCo.NotaNumEv4}
Thank you.
andrets13
Posts: 4
Joined: Fri May 15, 2015 9:36 pm

Re: Add two text fields type

Post by andrets13 »

The first option generates errors, and the second single concatenated and does not serve me
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Add two text fields type

Post by HighAley »

Hello.

It's very difficult to guess what do you need to get.
Did you try to use next expression:

Code: Select all

{Sum(InfoMateriaBoletinCo.NotaNumEv3, InfoMateriaBoletinCo.NotaNumEv4)}
Please, send us any sample with more detailed description.

Thank you.
Post Reply