Sum within a Sum

Stimulsoft Reports.NET discussion
Post Reply
shmuly
Posts: 58
Joined: Wed Jul 05, 2006 2:19 pm

Sum within a Sum

Post by shmuly »

Is it possible to have a sum within another sum? If so what is the correct syntax? I am trying to summarize two fields and subtract them from each other:
{Sum(Sum(GroupHeader2,ViewFinancial.imfpldamt)) - (Sum(GroupHeader2,ViewFinancial.imfosamt))}

When i try to preview this, I get an error.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Sum within a Sum

Post by Vital »

Hello,

You need use following code:

Code: Select all

{Sum(DataBandofGroupHeaderBand2, ViewFinancial.imfpldamt)) - (Sum(GroupHeader2,ViewFinancial.imfosamt))}
Thank you.
Post Reply