Conditional Average

Stimulsoft Reports.NET discussion
Post Reply
Naveen Aggarwal
Posts: 70
Joined: Wed Feb 24, 2010 11:08 am
Location: India

Conditional Average

Post by Naveen Aggarwal »

Hi !!

Is it possible to have conditional average ? I just wanted to calculate average of non-zero values in a data band.
Right now I am doing it manually dividing the sum by no. of rows having non-zero values.

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

Conditional Average

Post by Alex K. »

Hello,

You can use the following expression:

Code: Select all

{AvgIf(DataBandName, DataSourceName.FieldName, DataSourceName.FieldName != 0)}
Thank you.
Post Reply