So just to confirm, if there is at least one NULL
value in a group, #Error should be displayed?
You can use the following for the Summary expression:
=IIf(Sum(IIf(IsNothing(Fields!EquityPrice.Value),1,0)) > 0
, "#Error"
, Sum(Fields!EquityPrice.Value * Fields!EquityShares.Value))
This creates a count of NULL
values - if that count is greater than zero, return #Error.
I made a simple report to test:
This uses your expression at the detail level and mine at the summary. Errors for the group with one NULL
value as required: