calculate the sum of a Column in a variable, not in a textfield

Stimulsoft Reports.NET discussion
Post Reply
mabucher
Posts: 1
Joined: Mon Jun 09, 2008 7:03 am
Location: CH

calculate the sum of a Column in a variable, not in a textfield

Post by mabucher »

Wie kann ich die Summe einer Column in einer Variablen berechnen, die ich dann in anderen Variablen weiterverwenden kann?


How can I calculate the sum of a Column in a variable (not in a textfield). This variable must make further use of variables
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

calculate the sum of a Column in a variable, not in a textfield

Post by Edward »

Hello,

Please use the following expression on this:

MyVariable = Totals.Sum(DataSource,expression);

Here expression can contain a column with necessary condition, e.g.:

(DataSource.DataColumn1 < somevalue)?DataSource.DataColumn2:0

Thank you.
Post Reply