I have created a place holder within the report, which reports gets the total of transactions that are confirmed. But, I get an error. The exact message is: The value of expression for the textbox 'textbox3' refers directly to the field status without specificyng the dataset aggregate. When the report contains multiple datasets, field references outside of the data region must be contained within aggregate functions which specify a dataset scope.
=Sum(IIF(Fields!status.Value = "Pending", Fields!price.Value,NOTHING), "Dataset1″)
Instead it gives me the option of First(Fields!status.Value)
, which does not make any sense, as I want to iterate through all oders that are pending and get their total.
How do I resolve this?