=Fields!Sum_UNITS.Value, = 0
then it should return
0.00
otherwise it should do a
Sum(Fields!AMOUNT.Value)/Sum(Fields!Sum_UNITS.Value, "ResidentDays")
Here is what I tried and got an error...
=IIf(Fields!Sum_UNITS.Value."ResidentDays"= 0,"0.00",
Sum(Fields!AMOUNT.Value)/Sum(Fields!Sum_UNITS.Value,"ResidentDays")")
The Error is...
The Value expression for the text box ‘Textbox330’ refers to the field ‘Sum_UNITS’. Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope. Letters in the names of fields must use the correct case.
I should also note that
=Fields!Sum_UNITS.Value
is part of one dataset and
=Sum(Fields!AMOUNT.Value)/Sum(Fields!Sum_UNITS.Value,"ResidentDays")
is part of another. All the help would be greatly appreciated