min of data

Stimulsoft Reports.NET discussion
Post Reply
majidsoft
Posts: 66
Joined: Fri May 07, 2010 6:54 am

min of data

Post by majidsoft »

hi
i have a one data band that i show a data
in another data band i show a min or max of that data
when my data is null a min show a number like this 2132323212121212
but in decimal
i want if i dont have any data max or min not shown
this is my code of minimum
{Round(Min(DataBand1,boiler.roph),2)}
this is my code that shown a data
{IIF(boiler["roph"] == DBNull.Value,'-',boiler["roph"])}
thank you
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

min of data

Post by Jan »

Hello,

You can use following expression:

Code: Select all

{MyDataSource.Count == 0 ? 0 : Min(MyDataSource.MyField)}
Thank you.
majidsoft
Posts: 66
Joined: Fri May 07, 2010 6:54 am

min of data

Post by majidsoft »

thank you
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

min of data

Post by Andrew »

Hello,

We are always glad to help you.

Thank you.
Post Reply