Hi,
Im using the following expression to calculate the percentage
=iif(Fields!BudgetedRevenue.Value = 0,0,(Fields!BudgetedRevenue.Value-
Fields!BudgetedCostStan.Value- Fields!BudgetedCostOT.Value-
Fields!BudgetedCostExp.Value)/ Fields!BudgetedRevenue.Value)

if the Fields!BudgetedRevenue.Value = 0 it is returning the #error,instead
of 0.

Fields!BudgetedRevenue.Value is of datatype money.
Thanks in advance.

RE: Expressions in RS by goldpetalgraphics

goldpetalgraphics
Fri May 13 07:17:21 CDT 2005

Try using this:

=iif(isnothing(Fields!BudgetedRevenue.Value),0,(Fields!BudgetedRevenue.Value-
Fields!BudgetedCostStan.Value- Fields!BudgetedCostOT.Value-
Fields!BudgetedCostExp.Value)/ Fields!BudgetedRevenue.Value)

I belive the isnothing() should take the place of the = 0 and might help
your formula calculate correctly.

Let me know if that didn't work.

Catadmin
--
MCDBA, MCSA
Random Thoughts: If a person is Microsoft Certified, does that mean that
Microsoft pays the bills for the funny white jackets that tie in the back???
@=)


"CCP" wrote:

> Hi,
> Im using the following expression to calculate the percentage
> =iif(Fields!BudgetedRevenue.Value = 0,0,(Fields!BudgetedRevenue.Value-
> Fields!BudgetedCostStan.Value- Fields!BudgetedCostOT.Value-
> Fields!BudgetedCostExp.Value)/ Fields!BudgetedRevenue.Value)
>
> if the Fields!BudgetedRevenue.Value = 0 it is returning the #error,instead
> of 0.
>
> Fields!BudgetedRevenue.Value is of datatype money.
> Thanks in advance.