mathematical functions that exclude zeros and NULLs
Posted: Wed Oct 21, 2009 10:28 am
We would like the ability to have math functions (like Avg) that exclude 0 and nulls.
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
https://forum.stimulsoft.com/
Code: Select all
{Div(Totals.Sum(MyDataSource, MyDataSource.MyDataColumn),Totals.Sum(MyDataSource,IsNull(MyDataSource,"MyDataColumn")?0:1),0)}
Code: Select all
{Div(Totals.Sum(MyDataSource, MyDataSource.MyDataColumn),Totals.Sum(MyDataSource,(MyDataSource.MyDataColumn==0)|IsNull(MyDataSource,"MyDataColumn")?0:1),0)}