Hello,
I would like to know if it is possible to sum two fields inside a report.
In my report I have two numeric fields and I would like to display the sum of these two fields in another column or text component.
For example:
Field1 + Field2 = Total
I am new to Stimulsoft Reports, so I would like to understand what is the recommended way to do this (expression, calculated column, or another method).
If possible, could you provide a simple example?
Thank you.
sum two fields inside a report
-
Max Shamanov
- Posts: 1118
- Joined: Tue Sep 07, 2021 10:11 am
Re: sum two fields inside a report
Hello,
Please check the following link to our documentation and demo:
https://www.stimulsoft.com/en/documenta ... tarted.htm
https://demo.stimulsoft.com/?seeAll=rep ... SimpleList
Also, please check the attached report.
Please share a sample of your report so we can provide a more accurate recommendation.
Thank you.
Please check the following link to our documentation and demo:
https://www.stimulsoft.com/en/documenta ... tarted.htm
https://demo.stimulsoft.com/?seeAll=rep ... SimpleList
Also, please check the attached report.
Please share a sample of your report so we can provide a more accurate recommendation.
Thank you.
- Attachments
-
- Invoice.mrt
- (174.78 KiB) Downloaded 34 times
-
shaneronan
- Posts: 1
- Joined: Mon Mar 23, 2026 8:34 am
Re: sum two fields inside a report
Hey buddy, in Stimulsoft Reports, the easiest way to sum two fields is to use an expression directly in a Text component.
You just need to drag a Text component onto your report and enter an expression like this: {DataSource.Field1 + DataSource.Field2}. Stimulsoft will automatically calculate and display the total for you
You just need to drag a Text component onto your report and enter an expression like this: {DataSource.Field1 + DataSource.Field2}. Stimulsoft will automatically calculate and display the total for you
-
Lech Kulikowski
- Posts: 7720
- Joined: Tue Mar 20, 2018 5:34 am
Re: sum two fields inside a report
Hello,
Thank you for sharing your experience with other users.
Thank you for sharing your experience with other users.